Package zombie.core

Class FastTrig

java.lang.Object
zombie.core.FastTrig

public class FastTrig extends Object
Utility to handle Java's odd trig performance issues
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FastTrig

      public FastTrig()
  • Method Details

    • cos

      public static double cos(double radians)
      get the cosine of an angle
      Parameters:
      radians - The angle
      Returns:
      The cosine of the angle
    • sin

      public static double sin(double radians)
      get the sine of an angle
      Parameters:
      radians - The angle
      Returns:
      The sine of the angle