org.jmol.util
Class Measure

java.lang.Object
  extended by org.jmol.util.Measure

public final class Measure
extends java.lang.Object


Field Summary
static float radiansPerDegree
           
 
Constructor Summary
Measure()
           
 
Method Summary
static float computeAngle(javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB, javax.vecmath.Point3f pointC, boolean asDegrees)
           
static float computeAngle(javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB, javax.vecmath.Point3f pointC, javax.vecmath.Vector3f vectorBA, javax.vecmath.Vector3f vectorBC, boolean asDegrees)
           
static float computeTorsion(javax.vecmath.Point3f p1, javax.vecmath.Point3f p2, javax.vecmath.Point3f p3, javax.vecmath.Point3f p4, boolean asDegrees)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radiansPerDegree

public static final float radiansPerDegree
See Also:
Constant Field Values
Constructor Detail

Measure

public Measure()
Method Detail

computeTorsion

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

computeAngle

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

computeAngle

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