Class SinCosTest
java.lang.Object
de.pirckheimer_gymnasium.jbox2d.tests.math.SinCosTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic final intstatic floatstatic floatstatic final intstatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidconstructs the tables from the static parametersstatic final double[][]doAccuracyTest(boolean print) accuracy test from the static parameters, the tables array needs to be constructed as well, returns double[tables][0-3 (no lerp, lerp, then the difference)]static final double[][]doSpeedTest(boolean print) speed test from the static parameters the tables array needs to be constructed as well, returns double[tables][0-3 (no lerp, lerp, then the difference)]static void
-
Field Details
-
COLUMN_PADDING
public static final int COLUMN_PADDING- See Also:
-
NUM_DECIMALS
public static final int NUM_DECIMALS- See Also:
-
numTables
public static int numTables -
mostPreciseTable
public static float mostPreciseTable -
leastPreciseTable
public static float leastPreciseTable -
accuracyIterations
public static int accuracyIterations -
speedTrials
public static int speedTrials -
speedIterations
public static int speedIterations
-
-
Constructor Details
-
SinCosTest
public SinCosTest()
-
-
Method Details
-
main
- Parameters:
args-
-
constructTables
public static final void constructTables()constructs the tables from the static parameters -
doAccuracyTest
public static final double[][] doAccuracyTest(boolean print) accuracy test from the static parameters, the tables array needs to be constructed as well, returns double[tables][0-3 (no lerp, lerp, then the difference)] -
doSpeedTest
public static final double[][] doSpeedTest(boolean print) speed test from the static parameters the tables array needs to be constructed as well, returns double[tables][0-3 (no lerp, lerp, then the difference)]
-