메소드 |
설명 |
|
Abs ( float x ) : float |
|
|
Abs ( int x ) : int |
|
|
Atan2 ( float y, float x ) : float |
|
|
Ceil ( float x ) : int |
|
|
CeilPowerOf2 ( int x ) : int |
Rounds up the value to the nearest higher power^2 value. |
|
Clamp ( Vec2 a, Vec2 low, Vec2 high ) : Vec2 |
|
|
Clamp ( float a, float low, float high ) : float |
Returns the closest value to 'a' that is in between 'low' and 'high' |
|
ClampToOut ( Vec2 a, Vec2 low, Vec2 high, Vec2 dest ) : void |
|
|
Cos ( float x ) : float |
|
|
Distance ( Vec2 v1, Vec2 v2 ) : float |
|
|
DistanceSquared ( Vec2 v1, Vec2 v2 ) : float |
|
|
FastAtan2 ( float y, float x ) : float |
|
|
FastPow ( float a, float b ) : float |
|
|
Floor ( float x ) : int |
|
|
IsPowerOfTwo ( int x ) : bool |
|
|
Map ( float val, float fromMin, float fromMax, float toMin, float toMax ) : float |
|
|
Max ( float a, float b ) : float |
|
|
Max ( int a, int b ) : int |
|
|
Min ( float a, float b ) : float |
|
|
Min ( int a, int b ) : int |
|
|
NextPowerOfTwo ( int x ) : int |
Next Largest Power of 2: Given a binary integer value x, the next largest power of 2 can be computed by a SWAR algorithm that recursively "folds" the upper bits into the lower bits. This process yields a bit vector with the same most significant 1 as x, but all 1's below it. Adding 1 to that value yields the next largest power of 2. |
|
Pow ( float a, float b ) : float |
Computes a fast approximation to Math.pow(a, b) . Adapted from http://www.dctsystems.co.uk/Software/power.html. |
|
RandomFloat ( Random r, float argLow, float argHigh ) : float |
|
|
RandomFloat ( float argLow, float argHigh ) : float |
|
|
ReduceAngle ( float theta ) : float |
|
|
Round ( float x ) : int |
|
|
Sin ( float x ) : float |
|
|
SinLut ( float x ) : float |
|
|
Sqrt ( float x ) : float |
|
|