T
- - the vector type inside the librarypublic interface Vector<T>
Modifier and Type | Interface and Description |
---|---|
static class |
Vector.Vector3DType
3D Vector type is named after the library it is in.
|
Modifier and Type | Method and Description |
---|---|
Vector |
add(Vector m)
get the sum of this vector with another vector
|
double |
distance(Vector m)
get the distance between this vector and another vector
|
double |
dotProduct()
get the dot product of this vector with itself
|
Vector |
ebeMultiply(Vector m)
multiply this vector with another vector element by element
|
boolean |
equals(Vector m)
check if this vector equals another vector m.
|
Vector |
exp()
do Math.exp() calculation for every element in the vector
|
double |
getEntry(int i)
get one element in this vector
|
T |
getInternalVector()
get the value of internal vector of this vector in the vector type in the
library
|
double |
getNorm()
get the norm of this vector
|
double |
getX()
get the value of x coordinate of this vector
|
double |
getY()
get the value of y coordinate of this vector
|
double |
getZ()
get the value of z coordinate of this vector
|
Vector |
scalarMultiply(double d)
multiply this vector with a scalar value
|
void |
setInternalVector(T internalVector)
set the value of internal vector
|
Vector |
subtract(Vector m)
get the result of this vector subtracts another vector
|
double[] |
toArray()
get the value of this vector in the form of a double array
|
Vector scalarMultiply(double d)
d
- -the scalar value, -Double
Vector
Vector ebeMultiply(Vector m)
double getX()
Double
double getY()
Double
double getZ()
Double
double getEntry(int i)
i
- , the index of elementDouble
double dotProduct()
Double
double distance(Vector m)
m
- - Vector
Double
double getNorm()
Double
boolean equals(Vector m)
m
- - Vector
Boolean
double[] toArray()
T getInternalVector()
void setInternalVector(T internalVector)
internalVector
- , a vector in the vector type in the library