org.opensourcephysics.display3d.simple3d.utils
Class VectorAlgebra
java.lang.Object
org.opensourcephysics.display3d.simple3d.utils.VectorAlgebra
public class VectorAlgebra
- extends java.lang.Object
Some utility functions
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 |
VectorAlgebra
public VectorAlgebra()
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)