Modifier and Type | Method and Description |
---|---|
static double |
value(double[] v1,
double[] v2)
Computes the cosine of the angle between
v1 and v2 . |
public static double value(double[] v1, double[] v2)
v1
and v2
.v1
- Cartesian coordinates of the first vector.v2
- Cartesian coordinates of the second vector.IllegalArgumentException
- if the sizes of the input arrays are differentCopyright © 2017–2020 The Apache Software Foundation. All rights reserved.