org.opensourcephysics.drawing2d.utils
Class VectorAlgebra

java.lang.Object
  extended by org.opensourcephysics.drawing2d.utils.VectorAlgebra

public class VectorAlgebra
extends java.lang.Object

Some utility methods


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
equals, 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)