org.opensourcephysics.display3d.simple3d.utils
Class VectorAlgebra

java.lang.Object
  extended by org.opensourcephysics.display3d.simple3d.utils.VectorAlgebra

public class VectorAlgebra
extends java.lang.Object

Some utility functions


Constructor Summary
VectorAlgebra()
           
 
Method Summary
static double[] crossProduct(double[] u, double[] v)
           
static double norm(double[] u)
           
static double[] normalize(double[] u)
           
static double[] normalTo(double[] vector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorAlgebra

public VectorAlgebra()
Method Detail

norm

public static double norm(double[] u)

crossProduct

public static double[] crossProduct(double[] u,
                                    double[] v)

normalize

public static double[] normalize(double[] u)

normalTo

public static double[] normalTo(double[] vector)