Package org.boxutil.util
Class TrigUtil
java.lang.Object
org.boxutil.util.TrigUtil
All angle value must be
[0, 360] or [0, 2π].For avoid some calculation of trigonometric functions.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecosFormSinD(double sinValue, double angle) static floatcosFormSinF(float sinValue, float angle) static doublecosFormSinRadiansD(double sinValue, double angRad) static floatcosFormSinRadiansF(float sinValue, float angRad) static doublecosFormTanD(double tanValue, double angle) static floatcosFormTanF(float tanValue, float angle) static doublecosFormTanRadiansD(double tanValue, double angRad) static floatcosFormTanRadiansF(float tanValue, float angRad) static doublesinFormCosD(double cosValue, double angle) static floatsinFormCosF(float cosValue, float angle) static doublesinFormCosRadiansD(double cosValue, double angRad) static floatsinFormCosRadiansF(float cosValue, float angRad) static doublesinFormTanD(double tanValue, double angle) static floatsinFormTanF(float tanValue, float angle) static doublesinFormTanRadiansD(double tanValue, double angRad) static floatsinFormTanRadiansF(float tanValue, float angRad) static doubletanD(double sinValue, double cosValue) static floattanF(float sinValue, float cosValue) static doubletanFormCosD(double cosValue, double angle) static floattanFormCosF(float cosValue, float angle) static doubletanFormCosRadiansD(double cosValue, double angRad) static floattanFormCosRadiansF(float cosValue, float angRad) static doubletanFormSinD(double sinValue, double angle) static floattanFormSinF(float sinValue, float angle) static doubletanFormSinRadiansD(double sinValue, double angRad) static floattanFormSinRadiansF(float sinValue, float angRad)
-
Field Details
-
PI_F
public static final float PI_F- See Also:
-
PI2_F
public static final float PI2_F- See Also:
-
PI_HALF_F
public static final float PI_HALF_F- See Also:
-
RAD_270D
public static final double RAD_270D -
RAD_270F
public static final float RAD_270F -
RAD_180D
public static final double RAD_180D -
RAD_180F
public static final float RAD_180F -
RAD_90D
public static final double RAD_90D -
RAD_90F
public static final float RAD_90F
-
-
Method Details
-
sinFormCosD
public static double sinFormCosD(double cosValue, double angle) -
sinFormCosRadiansD
public static double sinFormCosRadiansD(double cosValue, double angRad) -
sinFormCosF
public static float sinFormCosF(float cosValue, float angle) -
sinFormCosRadiansF
public static float sinFormCosRadiansF(float cosValue, float angRad) -
sinFormTanD
public static double sinFormTanD(double tanValue, double angle) -
sinFormTanRadiansD
public static double sinFormTanRadiansD(double tanValue, double angRad) -
sinFormTanF
public static float sinFormTanF(float tanValue, float angle) -
sinFormTanRadiansF
public static float sinFormTanRadiansF(float tanValue, float angRad) -
cosFormSinD
public static double cosFormSinD(double sinValue, double angle) -
cosFormSinRadiansD
public static double cosFormSinRadiansD(double sinValue, double angRad) -
cosFormSinF
public static float cosFormSinF(float sinValue, float angle) -
cosFormSinRadiansF
public static float cosFormSinRadiansF(float sinValue, float angRad) -
cosFormTanD
public static double cosFormTanD(double tanValue, double angle) -
cosFormTanRadiansD
public static double cosFormTanRadiansD(double tanValue, double angRad) -
cosFormTanF
public static float cosFormTanF(float tanValue, float angle) -
cosFormTanRadiansF
public static float cosFormTanRadiansF(float tanValue, float angRad) -
tanFormSinD
public static double tanFormSinD(double sinValue, double angle) -
tanFormSinRadiansD
public static double tanFormSinRadiansD(double sinValue, double angRad) -
tanFormSinF
public static float tanFormSinF(float sinValue, float angle) -
tanFormSinRadiansF
public static float tanFormSinRadiansF(float sinValue, float angRad) -
tanFormCosD
public static double tanFormCosD(double cosValue, double angle) -
tanFormCosRadiansD
public static double tanFormCosRadiansD(double cosValue, double angRad) -
tanFormCosF
public static float tanFormCosF(float cosValue, float angle) -
tanFormCosRadiansF
public static float tanFormCosRadiansF(float cosValue, float angRad) -
tanD
public static double tanD(double sinValue, double cosValue) -
tanF
public static float tanF(float sinValue, float cosValue)
-