#include "ofConstants.h"
Go to the source code of this file.
Functions |
int | ofNextPow2 (int a) |
void | ofSeedRandom () |
void | ofSeedRandom (int val) |
float | ofRandom (float val0, float val1) |
float | ofRandomf () |
float | ofRandomuf () |
float | ofNormalize (float value, float min, float max) |
float | ofMap (float value, float inputMin, float inputMax, float outputMin, float outputMax) |
float | ofClamp (float value, float min, float max) |
float | ofLerp (float start, float stop, float amt) |
float | ofDist (float x1, float y1, float x2, float y2) |
float | ofDistSquared (float x1, float y1, float x2, float y2) |
int | ofSign (float n) |
bool | ofInRange (float t, float min, float max) |
float | ofRadToDeg (float radians) |
float | ofDegToRad (float degrees) |
float | ofRandomWidth () |
float | ofRandomHeight () |
Function Documentation
float ofClamp |
( |
float |
value, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
float ofDegToRad |
( |
float |
degrees ) |
|
float ofDist |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
float ofDistSquared |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
bool ofInRange |
( |
float |
t, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
float ofLerp |
( |
float |
start, |
|
|
float |
stop, |
|
|
float |
amt |
|
) |
| |
float ofMap |
( |
float |
value, |
|
|
float |
inputMin, |
|
|
float |
inputMax, |
|
|
float |
outputMin, |
|
|
float |
outputMax |
|
) |
| |
float ofNormalize |
( |
float |
value, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
float ofRadToDeg |
( |
float |
radians ) |
|
float ofRandom |
( |
float |
val0, |
|
|
float |
val1 |
|
) |
| |
void ofSeedRandom |
( |
int |
val ) |
|