| Modifier and Type | Field and Description |
|---|---|
| public double | x
The x coordinate. |
| public double | y
The y coordinate. |
| public double | z
The z coordinate. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public double | |
| public boolean | Returns: true if the object to be compared is
an instance of Vec3d and has
the same values; false otherwise.an object to be compared with this obj)Vec3dOverrides java. Determines whether or not two 3D points or vectors are equal. |
| public int | Returns: a hash code for thisVec3f.Overrides java. Returns the hashcode for this |
| public double | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | Returns: a string representation of thisVec3f.Overrides java. Returns a |
| x | back to summary |
|---|---|
| public double x The x coordinate. | |
| y | back to summary |
|---|---|
| public double y The y coordinate. | |
| z | back to summary |
|---|---|
| public double z The z coordinate. | |
| Vec3d | back to summary |
|---|---|
| public Vec3d() | |
| Vec3d | back to summary |
|---|---|
| public Vec3d(double x, double y, double z) | |
| Vec3d | back to summary |
|---|---|
| public Vec3d(Vec3d v) | |
| Vec3d | back to summary |
|---|---|
| public Vec3d(Vec3f v) | |
| add | back to summary |
|---|---|
| public void add(Vec3d t1, Vec3d t2) Sets the value of this vector to the sum of vectors t1 and t2 (this = t1 + t2). | |
| add | back to summary |
|---|---|
| public void add(Vec3d t1) Sets the value of this vector to the sum of itself and vector t1 (this = this + t1) .
| |
| cross | back to summary |
|---|---|
| public void cross(Vec3d v1, Vec3d v2) Sets this vector to be the vector cross product of vectors v1 and v2. | |
| dot | back to summary |
|---|---|
| public double dot(Vec3d v1) Computes the dot product of this vector and vector v1.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Determines whether or not two 3D points or vectors are equal.
Two instances of | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hashcode for this
| |
| length | back to summary |
|---|---|
| public double length() Returns the length of this vector.
| |
| mul | back to summary |
|---|---|
| public void mul(double scale) Multiplies this vector by the specified scalar value.
| |
| normalize | back to summary |
|---|---|
| public void normalize() Normalize this vector. | |
| set | back to summary |
|---|---|
| public void set(Vec3f v) | |
| set | back to summary |
|---|---|
| public void set(Vec3d v) | |
| set | back to summary |
|---|---|
| public void set(double x, double y, double z) | |
| sub | back to summary |
|---|---|
| public void sub(Vec3f t1, Vec3f t2) Sets the value of this vector to the difference of vectors t1 and t2 (this = t1 - t2). | |
| sub | back to summary |
|---|---|
| public void sub(Vec3d t1, Vec3d t2) Sets the value of this vector to the difference of vectors t1 and t2 (this = t1 - t2). | |
| sub | back to summary |
|---|---|
| public void sub(Vec3d t1) Sets the value of this vector to the difference of itself and vector t1 (this = this - t1) .
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a | |