javax.vecmath
public class Vector4f extends Tuple4f implements Serializable
Constructor Summary | |
---|---|
Vector4f(float x, float y, float z, float w)
Constructs and initializes a Vector4f from the specified xyzw coordinates. | |
Vector4f(float[] v)
Constructs and initializes a Vector4f from the specified array of length 4. | |
Vector4f(Vector4f v1)
Constructs and initializes a Vector4f from the specified Vector4f. | |
Vector4f(Vector4d v1)
Constructs and initializes a Vector4f from the specified Vector4d. | |
Vector4f(Tuple4d t1)
Constructs and initializes a Vector4f from the specified Tuple4d. | |
Vector4f(Tuple4f t1)
Constructs and initializes a Vector4f from the specified Tuple4f. | |
Vector4f()
Constructs and initializes a Vector4f to (0,0,0,0). | |
Vector4f(Tuple3f t1)
Constructs and initializes a Vector4f from the specified Tuple3f.
|
Method Summary | |
---|---|
float | angle(Vector4f 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]. |
float | dot(Vector4f v1)
Computes the dot product of the this vector and vector v1. |
float | length()
Returns the length of this vector. |
float | lengthSquared()
Returns the squared length of this vector. |
void | normalize(Vector4d v1)
Sets the value of this vector to the normalization of vector v1. |
void | normalize()
Normalizes this vector in place. |
void | set(Tuple3f t1)
Sets the x,y,z components of this point to the corresponding
components of tuple t1. |
Parameters: x the x coordinate y the y coordinate z the z coordinate w the w coordinate
Parameters: v the array of length 4 containing xyzw in order
Parameters: v1 the Vector4f containing the initialization x y z w data
Parameters: v1 the Vector4d containing the initialization x y z w data
Parameters: t1 the Tuple4d containing the initialization x y z w data
Parameters: t1 the Tuple4f containing the initialization x y z w data
Parameters: t1 the tuple to be copied
Since: Java3D 1.2
Parameters: v1 the other vector
Returns: the angle in radians in the range [0,PI]
Parameters: v1 the other vector
Returns: the dot product of this vector and v1
Returns: the length of this vector as a float
Returns: the squared length of this vectoras a float
Parameters: v1 the un-normalized vector
Parameters: t1 the tuple to be copied
Since: Java3D 1.2