LazyLib

org.lazywizard.lazylib
Class FastTrig

java.lang.Object
  extended by org.lazywizard.lazylib.FastTrig

public class FastTrig
extends java.lang.Object

Utility to handle Java's odd trig performance issues

Author:
JeffK

Method Summary
static double cos(double radians)
          Get the cosine of an angle
static double sin(double radians)
          Get the sine of an angle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sin

public static double sin(double radians)
Get the sine of an angle

Parameters:
radians - The angle
Returns:
The sine of the angle

cos

public static double cos(double radians)
Get the cosine of an angle

Parameters:
radians - The angle
Returns:
The cosine of the angle

LazyLib