|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.Maths
public class Maths
Static methods to do common mathematical calculations. The trigonometrical methods are for ease of working in degrees rather than radians. java.lang.StrictMath methods are always used.
| Nested Class Summary | |
|---|---|
static class |
Maths.Statistics
Just a record to hold public values. |
| Method Summary | |
|---|---|
static double |
acos(double cos)
Get arccos in degrees. |
static double |
angleDifference(double a1degrees,
double a2degrees)
Find the difference (a1 - a2) between 2 angles in degrees, taking into account periodicity. |
static double |
angleMean(double... anglesInDegrees)
Find the mean of a set of angles, taking into account periodicity. |
static double |
angleNormalise(double xDegs)
Deprecated. |
static Maths.Statistics |
angleStatistics(double... anglesInDegrees)
Calculate the min, max, mean and stdDev of a set of angles, taking into account periodicity. |
static Maths.Statistics |
angleStatistics(java.util.List<java.lang.Double> anglesInDegrees)
Calculate the min, max, mean and stdDev of a set of angles, taking into account periodicity. |
static double |
asin(double sin)
Get arcsin in degrees. |
static double |
asinh(double x)
Hyperbolic inverse sine. |
static double |
atan2(double sin,
double cos)
Get atan2 in degrees. |
static double |
cos(double xDegs)
Get cosine of an angle given in degrees. |
static double |
in360(double xDegs)
Convert angle x (degrees) to lie in range 0..360 |
static double |
sin(double xDegs)
Get sine of an angle given in degrees. |
static double |
tan(double xDegs)
Get tangent of an angle in degrees. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double angleMean(double... anglesInDegrees)
public static double angleDifference(double a1degrees,
double a2degrees)
public static Maths.Statistics angleStatistics(double... anglesInDegrees)
public static Maths.Statistics angleStatistics(java.util.List<java.lang.Double> anglesInDegrees)
@Deprecated public static double angleNormalise(double xDegs)
public static double in360(double xDegs)
public static double acos(double cos)
public static double asin(double sin)
public static double atan2(double sin,
double cos)
public static double sin(double xDegs)
public static double cos(double xDegs)
public static double tan(double xDegs)
public static double asinh(double x)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||