All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.vecmath.Vector4d

java.lang.Object
   |
   +----javax.vecmath.Tuple4d
           |
           +----javax.vecmath.Vector4d

public class Vector4d
extends javax.vecmath.Tuple4d
implements java.io.Serializable
A 4 element vector that is represented by double 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

Constructor Index

 o Vector4d()
Constructs and initializes a Vector4d to (0,0,0,0).
 o Vector4d(double, double, double, double)
Constructs and initializes a Vector4d from the specified xyzw coordinates.
 o Vector4d(double[])
Constructs and initializes a Vector4d from the specified array of length 4.
 o Vector4d(Tuple4d)
Constructs and initializes a Vector4d from the specified Tuple4d.
 o Vector4d(Tuple4f)
Constructs and initializes a Vector4d from the specified Tuple4f.
 o Vector4d(Vector4d)
Constructs and initializes a Vector4d from the specified Vector4d.
 o Vector4d(Vector4f)
Constructs and initializes a Vector4d from the specified Vector4d.

Method Index

 o 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].
 o dot(Vector4d)
Computes the dot product of the this vector and vector v1.
 o length()
Returns the length of this vector.
 o lengthSquared()
Returns the squared length of this vector.
 o normalize()
Normalizes this vector in place.
 o normalize(Vector4d)
Sets the value of this vector to the normalization of vector v1.

Constructors

 o 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
 o Vector4d
 public Vector4d(double v[])
Constructs and initializes a Vector4d from the specified array of length 4.

Parameters:
v - the array of length 4 containing xyzw in order
 o Vector4d
 public Vector4d(javax.vecmath.Vector4f v1)
Constructs and initializes a Vector4d from the specified Vector4d.

Parameters:
v1 - the Vector4d containing the initialization x y z w data
 o Vector4d
 public Vector4d(javax.vecmath.Vector4d v1)
Constructs and initializes a Vector4d from the specified Vector4d.

Parameters:
v1 - the Vector4d containing the initialization x y z w data
 o Vector4d
 public Vector4d(javax.vecmath.Tuple4d t1)
Constructs and initializes a Vector4d from the specified Tuple4d.

Parameters:
t1 - the Tuple4d containing the initialization x y z w data
 o Vector4d
 public Vector4d(javax.vecmath.Tuple4f t1)
Constructs and initializes a Vector4d from the specified Tuple4f.

Parameters:
t1 - the Tuple4f containing the initialization x y z w data
 o Vector4d
 public Vector4d()
Constructs and initializes a Vector4d to (0,0,0,0).

Methods

 o lengthSquared
 public final double lengthSquared()
Returns the squared length of this vector.

Returns:
the squared length of this vector
 o length
 public final double length()
Returns the length of this vector.

Returns:
the length of this vector
 o dot
 public final double dot(javax.vecmath.Vector4d 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 vector v1
 o 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
 o normalize
 public final void normalize()
Normalizes this vector in place.

 o angle
 public final double angle(javax.vecmath.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