Constructor and Description |
---|
MathUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
dot(double[] a,
double[] b)
dot product for 3D vectors
|
static double[][] |
mult(double[][] a,
double[][] b)
multiply two matrices 3x3
|
static double |
norm(double[] a)
vector 2-norm
|
static double[] |
sub(double[] a,
double[] b)
vector subtraction
|
public MathUtils()
public static double norm(double[] a)
a
- vector of length 3public static double dot(double[] a, double[] b)
a
- 3x1 vectorb
- 3x1 vectorpublic static double[][] mult(double[][] a, double[][] b)
a
- 3x3 matrixb
- 3x3 matrixpublic static double[] sub(double[] a, double[] b)
a
- vector of length 3b
- vector of length 3