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