edu.sdsc.mbt.viewers.GLViewerImpl
Class BondGeometryUtils

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.BondGeometryUtils

public class BondGeometryUtils
extends java.lang.Object


Constructor Summary
BondGeometryUtils()
           
 
Method Summary
static double[] getBiOrthogonalVector(double[] a, double[] b)
          returns a vector that is orthogonal to both input vectors
static double[] getDisplacementVector(Bond bond, double[] direction, double spacing)
           
static double[] getNormalVector(double[] b, double[] a, double[] c)
          Get a Vector of normal to the plane defined by the three given points
static double[] getSharpVector(double[] vector, double[] a, double[] b)
           
static double getVectorAngle(double[] vector1, double[] vector2)
           
static double getVectorAngle(double[] vector, double[] a, double[] b)
           
static boolean isTerminalBond(Bond bond)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BondGeometryUtils

public BondGeometryUtils()
Method Detail

getDisplacementVector

public static double[] getDisplacementVector(Bond bond,
                                             double[] direction,
                                             double spacing)

isTerminalBond

public static boolean isTerminalBond(Bond bond)

getNormalVector

public static final double[] getNormalVector(double[] b,
                                             double[] a,
                                             double[] c)
Get a Vector of normal to the plane defined by the three given points

Parameters:
b -
a -
c -
Returns:

getVectorAngle

public static final double getVectorAngle(double[] vector,
                                          double[] a,
                                          double[] b)

getVectorAngle

public static final double getVectorAngle(double[] vector1,
                                          double[] vector2)

getSharpVector

public static final double[] getSharpVector(double[] vector,
                                            double[] a,
                                            double[] b)

getBiOrthogonalVector

public static double[] getBiOrthogonalVector(double[] a,
                                             double[] b)
returns a vector that is orthogonal to both input vectors

Parameters:
a -
b -
Returns:

main

public static void main(java.lang.String[] args)