Class Tools


  • public class Tools
    extends java.lang.Object
    Static methods globally useful for 3d geometric work.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Tools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double safeAcos​(double value)
      Java acos yields a NAN if you take an arc-cos of an angle that's just a tiny bit greater than 1.0, so here's a more resilient version.
      • Methods inherited from class java.lang.Object

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

      • Tools

        private Tools()
    • Method Detail

      • safeAcos

        public static double safeAcos​(double value)
        Java acos yields a NAN if you take an arc-cos of an angle that's just a tiny bit greater than 1.0, so here's a more resilient version.