Class FastTrigonometry

  • All Implemented Interfaces:
    ITrigonometry

    public class FastTrigonometry
    extends java.lang.Object
    implements ITrigonometry
    Uses jafama (FastMath) library. It is not super accurate, but it's the fastest shot in the West.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double acos​(double angle)  
      double asin​(double angle)  
      double atan​(double angle)  
      double cos​(double angle)  
      double sin​(double angle)  
      double tan​(double angle)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FastTrigonometry

        public FastTrigonometry()
    • Method Detail

      • sin

        public double sin​(double angle)
        Specified by:
        sin in interface ITrigonometry
      • asin

        public double asin​(double angle)
        Specified by:
        asin in interface ITrigonometry
      • cos

        public double cos​(double angle)
        Specified by:
        cos in interface ITrigonometry
      • acos

        public double acos​(double angle)
        Specified by:
        acos in interface ITrigonometry
      • tan

        public double tan​(double angle)
        Specified by:
        tan in interface ITrigonometry
      • atan

        public double atan​(double angle)
        Specified by:
        atan in interface ITrigonometry