public class SharkysMath extends Object
Details: SharkysMath
contains general-
Items in this class have high reuse potential and are suitable for future inclusion in Math
.
Modifier and Type | Field and Description |
---|---|
static double |
TWO_PI
Twice pi.
|
Constructor and Description |
---|
SharkysMath() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isReal(double iValue)
Tests if value is real.
|
static boolean |
isReal(float iValue)
Tests if value is real.
|
static double |
normalizeDegrees(double iAngle)
Modulates angle.
|
static double |
normalizeRadians(double iAngle)
Modulates angle.
|
public static final double TWO_PI
public static double normalizeRadians(double iAngle)
Details:
normalizeRadians
modulates the given angle, expressed in radians, so that it falls between -pi and +pi.
iAngle
- angle to normalizepublic static double normalizeDegrees(double iAngle)
Details:
normalizeRadians
modulates the given angle, expressed in degrees, so that it falls between -pi and +pi.
iAngle
- angle to normalizepublic static boolean isReal(float iValue)
Details:
isReal
returns true
if the given value is "real."
In other words, isReal
returns true
if the value is neither infinite nor NaN, false
otherwise.
iValue
- value to testpublic static boolean isReal(double iValue)
Details:
isReal
returns true
if the given value is "real."
In other words, isReal
returns true
if the value is neither infinite nor NaN, false
otherwise.
iValue
- value to testCopyright © 2013. All Rights Reserved.