Class SphereSampler


  • public final class SphereSampler
    extends java.lang.Object
    Sample possible orientations. An orientation can be represented as a quaternion or as a rotation axis and angle. The orientations are somewhat evenly distributed over orientation space, but the current implementation is not suited for statistically uniform sampling.
    Author:
    Peter
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void getAxisAngle​(int index, javax.vecmath.AxisAngle4d axisAngle)  
      static void getAxisAngle​(int index, javax.vecmath.AxisAngle4f axisAngle)  
      static javax.vecmath.Quat4d getQuat4d​(int index)  
      static int getSphereCount()  
      • Methods inherited from class java.lang.Object

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

      • getSphereCount

        public static int getSphereCount()
      • getQuat4d

        public static javax.vecmath.Quat4d getQuat4d​(int index)
      • getAxisAngle

        public static void getAxisAngle​(int index,
                                        javax.vecmath.AxisAngle4f axisAngle)
      • getAxisAngle

        public static void getAxisAngle​(int index,
                                        javax.vecmath.AxisAngle4d axisAngle)
        Parameters:
        index - Index between 0 and getSphereCount()-1
        axisAngle - (Output) modified to contain the index-th sampled orientation