public final class Measure
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float |
radiansPerDegree |
Constructor and Description |
---|
Measure() |
Modifier and Type | Method and Description |
---|---|
static void |
calcAveragePoint(P3 pointA,
P3 pointB,
P3 pointC) |
static void |
calcAveragePointN(P3[] points,
int nPoints,
P3 averagePoint) |
static void |
calcBestAxisThroughPoints(P3[] points,
P3 axisA,
V3 axisUnitVector,
V3 vectorProjection,
int nTriesMax) |
static void |
calcNormalizedNormal(P3 pointA,
P3 pointB,
P3 pointC,
V3 vNormNorm,
V3 vAB,
V3 vAC) |
static Quaternion |
calculateQuaternionRotation(P3[][] centerAndPoints,
float[] retStddev,
boolean doReport) |
static float |
computeAngle(Tuple3f pointA,
Tuple3f pointB,
Tuple3f pointC,
V3 vectorBA,
V3 vectorBC,
boolean asDegrees) |
static float |
computeAngleABC(Tuple3f pointA,
Tuple3f pointB,
Tuple3f pointC,
boolean asDegrees) |
static java.lang.Object |
computeHelicalAxis(java.lang.String id,
int tokType,
P3 a,
P3 b,
Quaternion dq) |
static float |
computeTorsion(Tuple3f p1,
Tuple3f p2,
Tuple3f p3,
Tuple3f p4,
boolean asDegrees) |
static float |
distanceToPlane(P4 plane,
P3 pt) |
static float |
distanceToPlaneD(P4 plane,
float d,
P3 pt) |
static float |
distanceToPlaneV(V3 norm,
float w,
P3 pt) |
static float |
findAxis(P3[] points,
int nPoints,
P3 axisA,
V3 axisUnitVector,
V3 vectorProjection) |
static void |
getBisectingPlane(P3 pointA,
V3 vAB,
P3 ptTemp,
V3 vTemp,
P4 plane) |
static P3[] |
getCenterAndPoints(JmolList<P3> vPts) |
static float |
getDirectedNormalThroughPoints(P3 pointA,
P3 pointB,
P3 pointC,
P3 ptRef,
V3 vNorm,
V3 vAB,
V3 vAC) |
static P3 |
getIntersection(P3 pt1,
V3 v,
P4 plane,
P3 ptRet,
V3 tempNorm,
V3 vTemp) |
static JmolList<java.lang.Object> |
getIntersectionPP(P4 plane1,
P4 plane2) |
static boolean |
getNormalFromCenter(P3 ptCenter,
P3 ptA,
P3 ptB,
P3 ptC,
boolean isOutward,
V3 normal) |
static float |
getNormalThroughPoints(P3 pointA,
P3 pointB,
P3 pointC,
V3 vNorm,
V3 vAB,
V3 vAC) |
static void |
getNormalToLine(P3 pointA,
P3 pointB,
V3 vNormNorm) |
static void |
getPlaneProjection(P3 pt,
P4 plane,
P3 ptProj,
V3 vNorm) |
static void |
getPlaneThroughPoint(P3 pt,
V3 normal,
P4 plane) |
static void |
getPlaneThroughPoints(P3 pointA,
P3 pointB,
P3 pointC,
V3 vNorm,
V3 vAB,
V3 vAC,
P4 plane) |
static float |
getRmsd(P3[][] centerAndPoints,
Quaternion q) |
static float |
getTransformMatrix4(JmolList<P3> ptsA,
JmolList<P3> ptsB,
Matrix4f m,
P3 centerA) |
static boolean |
isInTetrahedron(P3 pt,
P3 ptA,
P3 ptB,
P3 ptC,
P3 ptD,
P4 plane,
V3 vTemp,
V3 vTemp2,
V3 vTemp3,
boolean fullyEnclosed) |
static void |
projectOntoAxis(P3 point,
P3 axisA,
V3 axisUnitVector,
V3 vectorProjection) |
static JmolList<P3> |
transformPoints(JmolList<P3> vPts,
Matrix4f m4,
P3 center) |
public static final float radiansPerDegree
public static float computeAngle(Tuple3f pointA, Tuple3f pointB, Tuple3f pointC, V3 vectorBA, V3 vectorBC, boolean asDegrees)
public static float computeAngleABC(Tuple3f pointA, Tuple3f pointB, Tuple3f pointC, boolean asDegrees)
public static float computeTorsion(Tuple3f p1, Tuple3f p2, Tuple3f p3, Tuple3f p4, boolean asDegrees)
public static java.lang.Object computeHelicalAxis(java.lang.String id, int tokType, P3 a, P3 b, Quaternion dq)
public static void getPlaneThroughPoints(P3 pointA, P3 pointB, P3 pointC, V3 vNorm, V3 vAB, V3 vAC, P4 plane)
public static void calcNormalizedNormal(P3 pointA, P3 pointB, P3 pointC, V3 vNormNorm, V3 vAB, V3 vAC)
public static float getDirectedNormalThroughPoints(P3 pointA, P3 pointB, P3 pointC, P3 ptRef, V3 vNorm, V3 vAB, V3 vAC)
public static float getNormalThroughPoints(P3 pointA, P3 pointB, P3 pointC, V3 vNorm, V3 vAB, V3 vAC)
public static boolean getNormalFromCenter(P3 ptCenter, P3 ptA, P3 ptB, P3 ptC, boolean isOutward, V3 normal)
ptCenter
- ptA
- ptB
- ptC
- isOutward
- normal
- public static void getBisectingPlane(P3 pointA, V3 vAB, P3 ptTemp, V3 vTemp, P4 plane)
public static void projectOntoAxis(P3 point, P3 axisA, V3 axisUnitVector, V3 vectorProjection)
public static void calcBestAxisThroughPoints(P3[] points, P3 axisA, V3 axisUnitVector, V3 vectorProjection, int nTriesMax)
public static float findAxis(P3[] points, int nPoints, P3 axisA, V3 axisUnitVector, V3 vectorProjection)
public static float getTransformMatrix4(JmolList<P3> ptsA, JmolList<P3> ptsB, Matrix4f m, P3 centerA)
public static Quaternion calculateQuaternionRotation(P3[][] centerAndPoints, float[] retStddev, boolean doReport)
public static float getRmsd(P3[][] centerAndPoints, Quaternion q)
public static JmolList<P3> transformPoints(JmolList<P3> vPts, Matrix4f m4, P3 center)
public static boolean isInTetrahedron(P3 pt, P3 ptA, P3 ptB, P3 ptC, P3 ptD, P4 plane, V3 vTemp, V3 vTemp2, V3 vTemp3, boolean fullyEnclosed)
public static JmolList<java.lang.Object> getIntersectionPP(P4 plane1, P4 plane2)
plane1
- plane2
-