|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.math.FastMath.FastTrig
FastTrig is used to calculate quick trig functions using a lookup table.
| Field Summary | |
static int |
PRECISION
The size of the lookup table. |
| Constructor Summary | |
FastMath.FastTrig()
|
|
| Method Summary | |
static float |
cos(float radians)
Returns the cosine of a given value, by looking up it's approximation in a precomputed table. |
static float |
sin(float radians)
Returns the sine of a given value, by looking up it's approximation in a precomputed table. |
static float |
tan(float radians)
Returns the tangent of a given value, by looking up it's approximation in a precomputed table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int PRECISION
| Constructor Detail |
public FastMath.FastTrig()
| Method Detail |
public static float sin(float radians)
radians - The value to sine.
public static float cos(float radians)
radians - The value to cosine.
public static float tan(float radians)
radians - The value to tan.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||