All Packages Class Hierarchy This Package Previous Next Index
Class javax.vecmath.Vector4f
java.lang.Object
|
+----javax.vecmath.Tuple4f
|
+----javax.vecmath.Vector4f
- public class Vector4f
- extends javax.vecmath.Tuple4f
- implements java.io.Serializable
A 4 element vector that is represented by single precision floating point
x,y,z,w coordinates.
- Version:
- specification 1.1, implementation $Revision: 1.7 $, $Date: 1999/03/04 09:16:33 $
- Author:
- Kenji hiranabe
-
Vector4f()
- Constructs and initializes a Vector4f to (0,0,0,0).
-
Vector4f(float, float, float, float)
- Constructs and initializes a Vector4f from the specified xyzw coordinates.
-
Vector4f(float[])
- Constructs and initializes a Vector4f from the specified array of length 4.
-
Vector4f(Tuple4d)
- Constructs and initializes a Vector4f from the specified Tuple4d.
-
Vector4f(Tuple4f)
- Constructs and initializes a Vector4f from the specified Tuple4f.
-
Vector4f(Vector4d)
- Constructs and initializes a Vector4f from the specified Vector4d.
-
Vector4f(Vector4f)
- Constructs and initializes a Vector4f from the specified Vector4f.
-
angle(Vector4f)
- 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(Vector4f)
- Computes the dot product of the 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.
Vector4f
public Vector4f(float x,
float y,
float z,
float w)
- Constructs and initializes a Vector4f from the specified xyzw coordinates.
- Parameters:
- x - the x coordinate
- y - the y coordinate
- z - the z coordinate
- w - the w coordinate
Vector4f
public Vector4f(float v[])
- Constructs and initializes a Vector4f from the specified array of length 4.
- Parameters:
- v - the array of length 4 containing xyzw in order
Vector4f
public Vector4f(javax.vecmath.Vector4f v1)
- Constructs and initializes a Vector4f from the specified Vector4f.
- Parameters:
- v1 - the Vector4f containing the initialization x y z w data
Vector4f
public Vector4f(javax.vecmath.Vector4d v1)
- Constructs and initializes a Vector4f from the specified Vector4d.
- Parameters:
- v1 - the Vector4d containing the initialization x y z w data
Vector4f
public Vector4f(javax.vecmath.Tuple4d t1)
- Constructs and initializes a Vector4f from the specified Tuple4d.
- Parameters:
- t1 - the Tuple4d containing the initialization x y z w data
Vector4f
public Vector4f(javax.vecmath.Tuple4f t1)
- Constructs and initializes a Vector4f from the specified Tuple4f.
- Parameters:
- t1 - the Tuple4f containing the initialization x y z w data
Vector4f
public Vector4f()
- Constructs and initializes a Vector4f to (0,0,0,0).
lengthSquared
public final float lengthSquared()
- Returns the squared length of this vector.
- Returns:
- the squared length of this vectoras a float
length
public final float length()
- Returns the length of this vector.
- Returns:
- the length of this vector as a float
dot
public final float dot(javax.vecmath.Vector4f v1)
- Computes the dot product of the this vector and vector v1.
- Parameters:
- v1 - the other vector
- Returns:
- the dot product of this vector and v1
normalize
public final void normalize(javax.vecmath.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 float angle(javax.vecmath.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].
- Parameters:
- v1 - the other vector
- Returns:
- the angle in radians in the range [0,PI]
All Packages Class Hierarchy This Package Previous Next Index