Class SphereSampler
java.lang.Object
org.biojava.nbio.structure.symmetry.geometry.SphereSampler
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
Modifier and TypeMethodDescriptionstatic voidgetAxisAngle(int index, javax.vecmath.AxisAngle4d axisAngle) static voidgetAxisAngle(int index, javax.vecmath.AxisAngle4f axisAngle) static javax.vecmath.Quat4dgetQuat4d(int index) static int
-
Method Details
-
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
-