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