public final class Vectors extends Object
Constructor and Description |
---|
Vectors() |
Modifier and Type | Method and Description |
---|---|
static double |
cosinus(double[] a,
double[] b) |
static double |
dot(double[] o1,
double[] o2)
computes the dot product
|
static double |
length(double[] in) |
static void |
normalize(double[] in)
Normalizes the length of the vector.
|
public static double length(double[] in)
public static void normalize(double[] in)
in
- public static double cosinus(double[] a, double[] b)
public static double dot(double[] o1, double[] o2)
o1
- o2
- IllegalArgumentException
- if o1 and o2 have different dimensionsCopyright © 2015. All Rights Reserved.