| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--javax.vecmath.Tuple2d
        |
        +--javax.vecmath.Vector2d
A 2-element vector that is represented by double-precision floating point x,y coordinates.
| Fields inherited from class javax.vecmath.Tuple2d | 
x, y | 
| Constructor Summary | |
Vector2d()
Constructs and initializes a Vector2d to (0,0).  | 
|
Vector2d(double[] v)
Constructs and initializes a Vector2d from the specified array.  | 
|
Vector2d(double x,
         double y)
Constructs and initializes a Vector2d from the specified xy coordinates.  | 
|
Vector2d(Tuple2d t1)
Constructs and initializes a Vector2d from the specified Tuple2d.  | 
|
Vector2d(Tuple2f t1)
Constructs and initializes a Vector2d from the specified Tuple2f.  | 
|
Vector2d(Vector2d v1)
Constructs and initializes a Vector2d from the specified Vector2d.  | 
|
Vector2d(Vector2f v1)
Constructs and initializes a Vector2d from the specified Vector2f.  | 
|
| Method Summary | |
 double | 
angle(Vector2d v1)
Returns the angle in radians between this vector and the vector parameter; the return value is constrained to the range [0,PI].  | 
 double | 
dot(Vector2d v1)
Computes the dot product of the 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(Vector2d v1)
Sets the value of this vector to the normalization of vector v1.  | 
| Methods inherited from class javax.vecmath.Tuple2d | 
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, 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 Vector2d(double x,
                double y)
x - the x coordinatey - the y coordinatepublic Vector2d(double[] v)
v - the array of length 2 containing xy in orderpublic Vector2d(Vector2d v1)
v1 - the Vector2d containing the initialization x y datapublic Vector2d(Vector2f v1)
v1 - the Vector2f containing the initialization x y datapublic Vector2d(Tuple2d t1)
t1 - the Tuple2d containing the initialization x y datapublic Vector2d(Tuple2f t1)
t1 - the Tuple2f containing the initialization x y datapublic Vector2d()
| Method Detail | 
public final double dot(Vector2d v1)
v1 - the other vectorpublic final double length()
public final double lengthSquared()
public final void normalize(Vector2d v1)
v1 - the un-normalized vectorpublic final void normalize()
public final double angle(Vector2d v1)
v1 - the other vector
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||