|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.vecmath.Tuple4f
javax.vecmath.Vector4f
public class Vector4f
A 4 element vector that is represented by single precision floating point x,y,z,w coordinates.
| Field Summary |
|---|
| Fields inherited from class javax.vecmath.Tuple4f |
|---|
w, x, y, z |
| Constructor Summary | |
|---|---|
Vector4f()
Constructs and initializes a Vector4f to (0,0,0,0). |
|
Vector4f(float[] v)
Constructs and initializes a Vector4f from the specified array of length 4. |
|
Vector4f(float x,
float y,
float z,
float w)
Constructs and initializes a Vector4f from the specified xyzw coordinates. |
|
Vector4f(Tuple3f t1)
Constructs and initializes a Vector4f from the specified Tuple3f. |
|
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(Vector4d v1)
Constructs and initializes a Vector4f from the specified Vector4d. |
|
Vector4f(Vector4f v1)
Constructs and initializes a Vector4f from the specified Vector4f. |
|
| 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]. |
java.lang.Object |
clone()
|
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()
Normalizes this vector in place. |
void |
normalize(Vector4d v1)
Sets the value of this vector to the normalization of vector v1. |
void |
set(Tuple3f t1)
Sets the x,y,z components of this point to the corresponding components of tuple t1. |
| Methods inherited from class javax.vecmath.Tuple4f |
|---|
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Vector4f()
public Vector4f(float[] v)
v - the array of length 4 containing xyzw in order
public Vector4f(float x,
float y,
float z,
float w)
x - the x coordinatey - the y coordinatez - the z coordinatew - the w coordinatepublic Vector4f(Tuple3f t1)
t1 - the tuple to be copiedpublic Vector4f(Tuple4d t1)
t1 - the Tuple4d containing the initialization x y z w datapublic Vector4f(Tuple4f t1)
t1 - the Tuple4f containing the initialization x y z w datapublic Vector4f(Vector4d v1)
v1 - the Vector4d containing the initialization x y z w datapublic Vector4f(Vector4f v1)
v1 - the Vector4f containing the initialization x y z w data| Method Detail |
|---|
public final float angle(Vector4f v1)
v1 - the other vector
public java.lang.Object clone()
clone in class Tuple4fpublic final float dot(Vector4f v1)
v1 - the other vector
public final float length()
public final float lengthSquared()
public final void normalize()
public final void normalize(Vector4d v1)
v1 - the un-normalized vectorpublic final void set(Tuple3f t1)
t1 - the tuple to be copied
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||