Class FastMaths
java.lang.Object
net.rodofire.easierworldcreator.util.FastMaths
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetFastCos(double x) static doublegetFastExp(double x) static doublegetFastSin(double x) static doublegetFastsqrt(float number) static doublegetFastsqrt(float number, float precision) static doublegetFastTan(double x) static doublegetLength(float x, float z) static doublegetLength(float x, float y, float z) static doublegetLength(int x, int z) static doublegetLength(int x, int y, int z) static doublegetLengthWPrecision(float x, float z, float precision) static doublegetLengthWPrecision(float x, float y, float z, float precision) static doublegetLengthWPrecision(int x, int z, float precision) static doublegetLengthWPrecision(int x, int y, int z, float precision) static doublegetPreciseCos(double x) static doublegetPreciseExp(double x) static doublegetPreciseSin(double x) static doublegetPreciseTan(double x) static void
-
Constructor Details
-
FastMaths
public FastMaths()
-
-
Method Details
-
registerMaths
public static void registerMaths() -
getFastSin
public static double getFastSin(double x) -
getFastCos
public static double getFastCos(double x) -
getFastTan
public static double getFastTan(double x) -
getFastExp
public static double getFastExp(double x) -
getPreciseSin
public static double getPreciseSin(double x) -
getPreciseCos
public static double getPreciseCos(double x) -
getPreciseTan
public static double getPreciseTan(double x) -
getPreciseExp
public static double getPreciseExp(double x) -
getLength
public static double getLength(int x, int y, int z) -
getLengthWPrecision
public static double getLengthWPrecision(int x, int y, int z, float precision) -
getLength
public static double getLength(float x, float y, float z) -
getLengthWPrecision
public static double getLengthWPrecision(float x, float y, float z, float precision) -
getLength
public static double getLength(int x, int z) -
getLengthWPrecision
public static double getLengthWPrecision(int x, int z, float precision) -
getLength
public static double getLength(float x, float z) -
getLengthWPrecision
public static double getLengthWPrecision(float x, float z, float precision) -
getFastsqrt
public static double getFastsqrt(float number) -
getFastsqrt
public static double getFastsqrt(float number, float precision)
-