- abs
double abs(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- abs
int abs(int r)
Undocumented in source. Be warned that the author may not have intended to support it.
- absEqualsOne
bool absEqualsOne(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- acos
double acos(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- asin
double asin(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- atan2
double atan2(double y, double x)
Undocumented in source. Be warned that the author may not have intended to support it.
- biLerp
double biLerp(double q00, double q10, double q01, double q11, double tx, double ty)
Undocumented in source. Be warned that the author may not have intended to support it.
- ceil
double ceil(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- clamp
double clamp(double a, double b, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
- clamp
int clamp(int a, int b, int val)
Undocumented in source. Be warned that the author may not have intended to support it.
- cos
double cos(double rad)
Undocumented in source. Be warned that the author may not have intended to support it.
- cosFromSin
double cosFromSin(double sin, double angle)
Undocumented in source. Be warned that the author may not have intended to support it.
- degrees
Select!(isFloatingPoint!T || isIntegral!T, T, double) degrees(T x)
Converts from radians to degrees.
- doubleToLongBits
long doubleToLongBits(double a)
Undocumented in source. Be warned that the author may not have intended to support it.
- doubleToRawIntBits
int doubleToRawIntBits(double a)
Undocumented in source. Be warned that the author may not have intended to support it.
- equals
bool equals(double a, double b, double delta)
Undocumented in source. Be warned that the author may not have intended to support it.
- exp
double exp(double a)
Undocumented in source. Be warned that the author may not have intended to support it.
- floor
double floor(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- fma
double fma(double a, double b, double c)
Undocumented in source. Be warned that the author may not have intended to support it.
- invsqrt
double invsqrt(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- isFinite
bool isFinite(double d)
Undocumented in source. Be warned that the author may not have intended to support it.
- isInfinite
bool isInfinite(double value)
Undocumented in source. Be warned that the author may not have intended to support it.
- lerp
double lerp(double a, double b, double t)
Undocumented in source. Be warned that the author may not have intended to support it.
- longbits
double longbits(long a)
Undocumented in source. Be warned that the author may not have intended to support it.
- math_signum
Select!(isFloatingPoint!T || isIntegral!T, T, double) math_signum(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
- max
int max(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- max
double max(double a, double b)
Undocumented in source. Be warned that the author may not have intended to support it.
- max
ulong max(ulong a, ulong b)
Undocumented in source. Be warned that the author may not have intended to support it.
- min
int min(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- min
double min(double a, double b)
Undocumented in source. Be warned that the author may not have intended to support it.
- pow
double pow(double a, double b)
Undocumented in source. Be warned that the author may not have intended to support it.
- radians
Select!(isFloatingPoint!T || isIntegral!T, T, double) radians(T x)
Converts from degrees to radians.
- random
double random()
Undocumented in source. Be warned that the author may not have intended to support it.
- round
long round(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- roundHalfDown
int roundHalfDown(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- roundHalfEven
int roundHalfEven(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- roundHalfUp
int roundHalfUp(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- roundUsing
int roundUsing(double v, int mode)
Undocumented in source. Be warned that the author may not have intended to support it.
- safeAcos
double safeAcos(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- safeAsin
double safeAsin(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- signum
double signum(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
- signum
int signum(int v)
Undocumented in source. Be warned that the author may not have intended to support it.
- signum
int signum(long v)
Undocumented in source. Be warned that the author may not have intended to support it.
- sin
double sin(double rad)
Undocumented in source. Be warned that the author may not have intended to support it.
- sin_roquen_9
double sin_roquen_9(double v)
- sin_roquen_arith
double sin_roquen_arith(double x)
- sin_roquen_newk
double sin_roquen_newk(double v)
- sin_theagentd_arith
double sin_theagentd_arith(double x)
- sqrt
double sqrt(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- tan
double tan(double r)
Undocumented in source. Be warned that the author may not have intended to support it.
- toDegrees
double toDegrees(double angles)
Undocumented in source. Be warned that the author may not have intended to support it.
- toRadians
double toRadians(double angles)
Undocumented in source. Be warned that the author may not have intended to support it.
- triLerp
double triLerp(double q000, double q100, double q010, double q110, double q001, double q101, double q011, double q111, double tx, double ty, double tz)
Undocumented in source. Be warned that the author may not have intended to support it.
Contains fast approximations of some {@link java.lang.Math} operations. <p> By default, {@link java.lang.Math} methods will be used by all other DOML classes. In order to use the approximations in this class, start the JVM with the parameter <code>-DDOML.fastmath</code>. <p> There are two algorithms for approximating sin/cos: <ol> <li>arithmetic <a href="http://www.java-gaming.org/topics/DOML-1-8-0-release/37491/msg/361815/view.html#msg361815">polynomial approximation</a> contributed by roquendm <li>theagentd's <a href="http://www.java-gaming.org/topics/extremely-fast-sine-cosine/36469/msg/346213/view.html#msg346213">linear interpolation</a> variant of Riven's algorithm from <a href="http://www.java-gaming.org/topics/extremely-fast-sine-cosine/36469/view.html">http://www.java-gaming.org/</a> </ol> By default, the first algorithm is being used. In order to use the second one, start the JVM with <code>-DDOML.sinLookup</code>. The lookup table bit length of the second algorithm can also be adjusted for improved accuracy via <code>-DDOML.sinLookup.bits=<n></code>, where <n> is the number of bits of the lookup table.
@author Kai Burjack