|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.common.math.MathToolBox
MathToolBox
| Method Summary | |
static double |
acos(double value)
Returns the arc cosine |
static double |
asin(double value)
Returns the arc sine |
static double |
atan(double value)
Returns the arc tangent |
static double |
cos(double angleRad)
Returns the cosine |
static double |
degToRad(double deg)
Converts from degrees to radians |
static double |
getAreaCircle(double diameter)
Calculates the area of a circle |
static double |
getCircumference(double diameter)
Calculates the circumference |
static double |
getHypotenuse(double cathetusA,
double cathetusB)
Calculates the Hypotenuse of an right angled triangle |
static double |
getVolumeSphere(double diameter)
Calculates the volume of a sphere |
static double |
radToDeg(double rad)
Converts from radians to degrees |
static double |
randomAngleDeg()
Returns a random angle in degrees |
static double |
randomAngleRad()
Returns a random angle in radians |
static double |
randomDouble(double min,
double max)
Returns a random double in the selected range |
static int |
randomInt(int min,
int max)
Returns a random integer in the selected range |
static double |
round(double value,
int digits)
Rounds a double to the defined digits |
static double |
sin(double angleRad)
Returns the sine |
static double |
tan(double angleRad)
Returns the tangent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static double degToRad(double deg)
deg -
public static double radToDeg(double rad)
rad -
public static double getVolumeSphere(double diameter)
diameter - diameter of the sphere
public static double getAreaCircle(double diameter)
diameter - diameter of the circle
public static double getCircumference(double diameter)
diameter - diameter of the circle
public static double getHypotenuse(double cathetusA,
double cathetusB)
cathetusA - cathetusB -
public static double atan(double value)
value - the value whose arc tangent is to be returned
public static double tan(double angleRad)
angleRad - angle in radians
public static double asin(double value)
value - the value whose arc sine is to be returned.
public static double sin(double angleRad)
angleRad - angle in radians
public static double acos(double value)
value - the value whose arc cosine is to be returned.
public static double cos(double angleRad)
angleRad - angle in radians
public static double round(double value,
int digits)
value - Value to be roundeddigits - Number of digits to round
public static int randomInt(int min,
int max)
min - max -
public static double randomDouble(double min,
double max)
min - max -
public static double randomAngleRad()
public static double randomAngleDeg()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||