public class Maths
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Maths.Statistics
Just a record to hold public values.
|
Modifier and Type | Method and Description |
---|---|
static double |
acosDegs(double cos)
Get arccos in degrees.
|
static double |
acosh(double x)
Hyperbolic inverse cosine.
|
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 Maths.Statistics |
angleStatistics(java.util.Collection<java.lang.Double> anglesInDegrees)
Calculate the min, max, mean and stdDev (all in degrees) of a list or set of angles, taking into
account periodicity.
|
static Maths.Statistics |
angleStatistics(double... anglesInDegrees)
Calculate the min, max, mean and stdDev of a set of angles, taking into account periodicity.
|
static double |
asinDegs(double sin)
Get arcsin in degrees.
|
static double |
asinh(double x)
Hyperbolic inverse sine.
|
static double |
atan2Degs(double sin,
double cos)
Get atan2 in degrees.
|
static double |
atanh(double x)
Hyperbolic inverse tangent.
|
static double |
cosDegs(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 |
sinDegs(double xDegs)
Get sine of an angle given in degrees.
|
static double |
tanDegs(double xDegs)
Get tangent of an angle in degrees.
|
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.Collection<java.lang.Double> anglesInDegrees)
public static double in360(double xDegs)
public static double acosDegs(double cos)
public static double asinDegs(double sin)
public static double atan2Degs(double sin, double cos)
public static double sinDegs(double xDegs)
public static double cosDegs(double xDegs)
public static double tanDegs(double xDegs)
public static double asinh(double x)
public static double acosh(double x)
public static double atanh(double x)