public class Vector3d extends Tuple3d
Constructor and Description |
---|
Vector3d() |
Modifier and Type | Method and Description |
---|---|
void |
cross(Vector3d v1,
Vector3d v2)
Sets this vector to be the vector cross product of vectors v1 and v2.
|
double |
dot(Vector3d v)
Computes the dot product of the this vector and vector v.
|
double |
length()
Returns the length of this vector.
|
double |
lengthSquared()
Returns the squared length of this vector.
|
void |
normalize()
Normalizes this vector in place.
|
public final void cross(Vector3d v1, Vector3d v2)
v1
- the first vectorv2
- the second vectorpublic final void normalize()
public final double dot(Vector3d v)
v
- the other vectorpublic final double lengthSquared()
public final double length()