org.jmol.util

Class Measure

public final class Measure extends Object

Field Summary
static floatradiansPerDegree
Method Summary
static floatcomputeAngle(Point3f pointA, Point3f pointB, Point3f pointC, Vector3f vectorBA, Vector3f vectorBC, boolean asDegrees)
static floatcomputeAngle(Point3f pointA, Point3f pointB, Point3f pointC, boolean asDegrees)
static floatcomputeTorsion(Point3f p1, Point3f p2, Point3f p3, Point3f p4, boolean asDegrees)

Field Detail

radiansPerDegree

public static final float radiansPerDegree

Method Detail

computeAngle

public static float computeAngle(Point3f pointA, Point3f pointB, Point3f pointC, Vector3f vectorBA, Vector3f vectorBC, boolean asDegrees)

computeAngle

public static float computeAngle(Point3f pointA, Point3f pointB, Point3f pointC, boolean asDegrees)

computeTorsion

public static float computeTorsion(Point3f p1, Point3f p2, Point3f p3, Point3f p4, boolean asDegrees)