| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | Vector2d(double
the x coordinate x, double the y coordinate y)Constructs and initializes a Vector2d from the specified xy coordinates. |
| public | Vector2d(double[]
the array of length 2 containing xy in order v)Constructs and initializes a Vector2d from the specified array. |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final void | |
| public final void |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| Vector2d | back to summary |
|---|---|
| public Vector2d(double x, double y) Constructs and initializes a Vector2d from the specified xy coordinates.
| |
| Vector2d | back to summary |
|---|---|
| public Vector2d(double[] v) Constructs and initializes a Vector2d from the specified array.
| |
| Vector2d | back to summary |
|---|---|
| public Vector2d(Vector2d v1) Constructs and initializes a Vector2d from the specified Vector2d.
| |
| Vector2d | back to summary |
|---|---|
| public Vector2d(Vector2f v1) Constructs and initializes a Vector2d from the specified Vector2f.
| |
| Vector2d | back to summary |
|---|---|
| public Vector2d(Tuple2d t1) Constructs and initializes a Vector2d from the specified Tuple2d.
| |
| Vector2d | back to summary |
|---|---|
| public Vector2d(Tuple2f t1) Constructs and initializes a Vector2d from the specified Tuple2f.
| |
| Vector2d | back to summary |
|---|---|
| public Vector2d() Constructs and initializes a Vector2d to (0,0). | |
| angle | back to summary |
|---|---|
| public final 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].
| |
| dot | back to summary |
|---|---|
| public final double dot(Vector2d v1) Computes the dot product of the this vector and vector v1.
| |
| length | back to summary |
|---|---|
| public final double length() Returns the length of this vector.
| |
| lengthSquared | back to summary |
|---|---|
| public final double lengthSquared() Returns the squared length of this vector.
| |
| normalize | back to summary |
|---|---|
| public final void normalize(Vector2d v1) Sets the value of this vector to the normalization of vector v1.
| |
| normalize | back to summary |
|---|---|
| public final void normalize() Normalizes this vector in place. | |