org.jbox2d.tests.math
Class SinCosTest

java.lang.Object
  extended by org.jbox2d.tests.math.SinCosTest

public class SinCosTest
extends java.lang.Object


Field Summary
static int accuracyIterations
           
static int COLUMN_PADDING
           
static float leastPreciseTable
           
static float mostPreciseTable
           
static int NUM_DECIMALS
           
static int numTables
           
static int speedIterations
           
static int speedTrials
           
 
Constructor Summary
SinCosTest()
           
 
Method Summary
static void constructTables()
          constructs the tables from the static parameters
static 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 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 main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_PADDING

public static final int COLUMN_PADDING
See Also:
Constant Field Values

NUM_DECIMALS

public static final int NUM_DECIMALS
See Also:
Constant Field Values

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 Detail

SinCosTest

public SinCosTest()
Method Detail

main

public static void main(java.lang.String[] args)
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)]

Returns:

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)]

Returns:


Copyright © 2013. All Rights Reserved.