ofDoc > math > ofMath

ofMathfile

ofMath provides a collection of mathematical utilities and functions.

Warning
Many ofRandom-style functions wrap rand() which is not reentrant or thread safe. To generate random numbers simultaneously in multiple threads, consider using an instance of Poco::Random in each thread.
See Also
http://pocoproject.org/docs/Poco.Random.html

Random Numbers

Number Ranges

ofMap ()
ofClamp ()
ofLerp ()

Distance

ofDist ()

Angles

Number wrapping

ofWrap ()

Noise

ofNoise ()

Geometry

Others

ofSign ()