Skip to content

Latest commit

 

History

History
189 lines (102 loc) · 1.68 KB

math.rst

File metadata and controls

189 lines (102 loc) · 1.68 KB

Math

p5

Note

Many math functions available in Processing are already included in Python's math standard library. There methods aren't listed here. Please refer to the documentation for the math standard library.

Vector

Vector

Calculation

ceil()

ceil

constrain()

constrain

dist()

dist

exp()

exp

floor()

floor

lerp()

lerp

log()

log

sq()

sq

magnitude()

magnitude

remap()

remap

normalize()

normalize

sqrt()

sqrt

Trigonometry

acos()

acos

asin()

asin

atan()

atan

atan2()

atan2

cos()

cos

degrees()

degrees

radians()

radians

sin()

sin

tan()

tan

Random

noise()

noise

noise_detail()

noise_detail

noise_seed()

noise_seed

random_uniform()

random_uniform

random_gaussian()

random_gaussian

random_seed()

random_seed