Class Math


  • public class Math
    extends java.lang.Object
    • Constructor Detail

      • Math

        public Math​(long cPtr,
                    boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(Math obj)
      • delete

        public void delete()
      • clamp

        public static double clamp​(double val,
                                   double min,
                                   double max)
      • clampQ

        public static Q clampQ​(Q q,
                               Q min,
                               Q max)
      • clampQ

        public static Q clampQ​(Q q,
                               QPair bounds)
      • ran

        public static double ran()
      • seed

        public static void seed​(long seed)
      • seed

        public static void seed()
      • ran

        public static double ran​(double from,
                                 double to)
      • ranI

        public static int ranI​(int from,
                               int to)
      • ranNormalDist

        public static double ranNormalDist​(double mean,
                                           double sigma)
      • ranQ

        public static Q ranQ​(Q from,
                             Q to)
      • ranQ

        public static Q ranQ​(QPair bounds)
      • ranDir

        public static Q ranDir​(long dim,
                               double length)
      • ranDir

        public static Q ranDir​(long dim)
      • ranWeightedDir

        public static Q ranWeightedDir​(long dim,
                                       Q weights,
                                       double length)
      • ranWeightedDir

        public static Q ranWeightedDir​(long dim,
                                       Q weights)
      • round

        public static double round​(double d)
      • sqr

        public static Q sqr​(Q q)
      • sqrt

        public static Q sqrt​(Q q)
      • abs

        public static Q abs​(Q v)
      • min

        public static double min​(Q v)
      • max

        public static double max​(Q v)
      • sign

        public static double sign​(double s)
      • sign

        public static Q sign​(Q q)
      • ceilLog2

        public static int ceilLog2​(int n)
      • factorial

        public static long factorial​(long n)
      • isNaN

        public static boolean isNaN​(double d)
      • quaternionToEAA

        public static EAAd quaternionToEAA​(Quaterniond quat)
      • quaternionToEAA

        public static EAAf quaternionToEAA​(Quaternionf quat)
      • eaaToQuaternion

        public static Quaterniond eaaToQuaternion​(EAAd eaa)
      • eaaToQuaternion

        public static Quaternionf eaaToQuaternion​(EAAf eaa)