Package gaiasky.util.math
Class FastTrigonometry
java.lang.Object
gaiasky.util.math.FastTrigonometry
- All Implemented Interfaces:
ITrigonometry
Uses Jafama (
FastMath
) library. It is not super accurate,
but it's the fastest shot in the west.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FastTrigonometry
public FastTrigonometry()
-
-
Method Details
-
sin
public double sin(double angle) - Specified by:
sin
in interfaceITrigonometry
-
asin
public double asin(double angle) - Specified by:
asin
in interfaceITrigonometry
-
cos
public double cos(double angle) - Specified by:
cos
in interfaceITrigonometry
-
acos
public double acos(double angle) - Specified by:
acos
in interfaceITrigonometry
-
tan
public double tan(double angle) - Specified by:
tan
in interfaceITrigonometry
-
atan
public double atan(double angle) - Specified by:
atan
in interfaceITrigonometry
-
atan2
public double atan2(double y, double x) - Specified by:
atan2
in interfaceITrigonometry
-