All Packages Class Hierarchy This Package Previous Next Index
Class java.vecmath.Vector4d
java.lang.Object
|
+----java.vecmath.Tuple4d
|
+----java.vecmath.Vector4d
- public class Vector4d
- extends Tuple4d
A 4 element vector represented by double precision floating point
x,y,z,w coordinates.
-
Vector4d()
- Constructs and initializes a Vector4d to (0,0,0,0).
-
Vector4d(double, double, double, double)
- Constructs and initializes a Vector4d from the specified xyzw coordinates.
-
Vector4d(double[])
- Constructs and initializes a Vector4d from the coordinates contained
in the array.
-
Vector4d(Vector4d)
- Constructs and initializes a Vector4d from the specified Vector4d.
-
Vector4d(Vector4f)
- Constructs and initializes a Vector4d from the specified Vector4f.
-
angle(Vector4d)
-
Returns the (4-space) angle in radians between this vector and
the vector parameter; the return value is constrained to the
range [0,PI].
-
dot(Vector4d)
- Returns the dot product of this vector and vector v1.
-
length()
- Returns the length of this vector.
-
lengthSquared()
- Returns the squared length of this vector.
-
normalize()
- Normalizes this vector in place.
-
normalize(Vector4d)
- Sets the value of this vector to the normalization of vector v1.
Vector4d
public Vector4d(double x,
double y,
double z,
double w)
- Constructs and initializes a Vector4d from the specified xyzw coordinates.
- Parameters:
- x - the x coordinate
- y - the y coordinate
- z - the z coordinate
- w - the w coordinate
Vector4d
public Vector4d(double v[])
- Constructs and initializes a Vector4d from the coordinates contained
in the array.
- Parameters:
- v - the array of length 4 containing xyzw in order
Vector4d
public Vector4d(Vector4d v1)
- Constructs and initializes a Vector4d from the specified Vector4d.
- Parameters:
- v1 - the Vector4d containing the initialization x y z w data
Vector4d
public Vector4d(Vector4f v1)
- Constructs and initializes a Vector4d from the specified Vector4f.
- Parameters:
- v1 - the Vector4f containing the initialization x y z w data
Vector4d
public Vector4d()
- Constructs and initializes a Vector4d to (0,0,0,0).
length
public final double length()
- Returns the length of this vector.
- Returns:
- the length of this vector
lengthSquared
public final double lengthSquared()
- Returns the squared length of this vector.
- Returns:
- the squared length of this vector
dot
public final double dot(Vector4d v1)
- Returns the dot product of this vector and vector v1.
- Parameters:
- v1 - The other vector
- Returns:
- the dot product of this vector and vector v1
normalize
public final void normalize(Vector4d v1)
- Sets the value of this vector to the normalization of vector v1.
- Parameters:
- v1 - the un-normalized vector
normalize
public final void normalize()
- Normalizes this vector in place.
angle
public final double angle(Vector4d v1)
- Returns the (4-space) angle in radians between this vector and
the vector parameter; the return value is constrained to the
range [0,PI].
- Parameters:
- v1 - The other vector
- Returns:
- The angle in radians in the range [0,PI]
All Packages Class Hierarchy This Package Previous Next Index