Class SphereSampler
- java.lang.Object
-
- org.biojava.nbio.structure.symmetry.geometry.SphereSampler
-
public final class SphereSampler extends 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()
-
-
-
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 andgetSphereCount()
-1axisAngle
- (Output) modified to contain the index-th sampled orientation
-
-