| | Constant | Description |
|---|
| | acosD |
Returns the inverse cosine of a slope ratio and returns its angle in degrees. |
| | acosHm |
Anti-hyperbolic cosine. |
| | acosHp |
Anti-hyperbolic cosine. |
| | angleOfLine |
Returns the angle in degrees between 2 points with this coordinates passed in argument. |
| | asinD |
Calculates the arcsine of the passed angle. |
| | asinH |
Anti-hyperbolic sine. |
| | atan2D |
Calculates the arctangent2 of the passed angle. |
| | atanD |
Calculates the arctangent of the passed angle. |
| | atanH |
Anti-hyperbolic tangent. |
| | berp |
Short for 'boing-like interpolation', this method will first overshoot, then waver back and forth around the end value before coming to a rest. |
| | bounce |
Returns a value between 0 and 1 that can be used to easily make bouncing GUI items (a la OS X's Dock)
Example :
import core.maths.bounce ;
trace( bounce( 0.5 ) ) ;
|
| | cartesianToPolar |
Converts a vector in cartesian in a polar vector. |
| | ceil |
Rounds and returns the ceiling of the specified number or expression. |
| | clamp |
Bounds a numeric value between 2 numbers. |
| | clerp |
Circular Lerp is like lerp but handles the wraparound from 0 to 360. |
| | cosD |
Calculates the cosine of the passed angle. |
| | coserp |
Short for 'cosinusoidal interpolation', this method will interpolate while easing around the end, when value is near one. |
| | cosH |
Hyperbolic cosine. |
| | DEG2RAD |
This constant change degrees to radians : Math.PI/180. |
| | degreesToRadians |
Converts an angle in degrees in radians
|
| | distance |
Returns the distance between 2 points with the coordinates of the 2 points. |
| | distanceByObject |
Returns the distance between 2 points with the coordinates of the 2 points. |
| | EPSILON |
Represents the smallest positive Single value greater than zero. |
| | fixAngle |
Fixs an angle in degrees between 0 and 360 degrees. |
| | floor |
Rounds and returns a number by a count of floating points. |
| | gcd |
Returns the greatest common divisor with the Euclidean algorithm. |
| | hermite |
This method will interpolate while easing in and out at the limits. |
| | hypothenuse |
Calculates the hypothenuse value of the two passed-in triangle sides value. |
| | interpolate |
With a number value and a range this method returns the actual value for the interpolated value in that range. |
| | isEven |
Indicates if an integer that is "evenly divisible" by 2. |
| | isOdd |
Indicates if an integer that is not "evenly divisible" by 2. |
| | LAMBDA |
This constant is the Euler-Mascheroni constant (lambda or C) :
( n )
lim( sigma 1/k - ln(n) )
n->oo ( k=1 )
|
| | lerp |
Calculates a number between two numbers at a specific increment. |
| | log10 |
Calculates the log10 of the specified value. |
| | logN |
Calculates the logN of the specified value. |
| | map |
Takes a value in a given range (minimum1, maximum1) and finds the corresponding value in the next range(minimum2, maximum2). |
| | normalize |
Takes a value within a given range and converts it to a number between 0 and 1. |
| | percentage |
Returns a percentage or null. |
| | PHI |
This constant is the golden ratio (phi) : ( 1 + Math.sqrt(5) ) / 2. |
| | polarToCartesian |
Converts a Polar object in a cartesian vector. |
| | RAD2DEG |
This constant change radians to degrees : 180/Math.PI. |
| | radiansToDegrees |
Converts an angle in radians in degrees
|
| | replaceNaN |
Replace the passed-in Number value, if the value is NaN the return value is the default value in second argument. |
| | round |
Rounds and returns a number by a count of floating points. |
| | sign |
Returns 1 if the value is positive or -1. |
| | sinD |
Calculates the sine of the passed angle. |
| | sinerp |
Short for 'sinusoidal interpolation', this method will interpolate while easing around the end, when value is near one. |
| | sinH |
Hyperbolic sine. |
| | tanD |
Calculates the tangent of the passed angle. |
| | tanH |
Hyperbolic tangent. |