| Modifier and Type | Field and Description |
|---|---|
| public float | x
The x coordinate. |
| public float | y
The y coordinate. |
| public float | z
The z coordinate. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public float | |
| public boolean | Returns: true if the object to be compared is
an instance of Vec3f and has
the same values; false otherwise.an object to be compared with this obj)Vec3fOverrides 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 float | |
| public final 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 float x The x coordinate. | |
| y | back to summary |
|---|---|
| public float y The y coordinate. | |
| z | back to summary |
|---|---|
| public float z The z coordinate. | |
| Vec3f | back to summary |
|---|---|
| public Vec3f() | |
| Vec3f | back to summary |
|---|---|
| public Vec3f(float x, float y, float z) | |
| Vec3f | back to summary |
|---|---|
| public Vec3f(Vec3f v) | |
| add | back to summary |
|---|---|
| public void add(Vec3f t1, Vec3f 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(Vec3f 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(Vec3f v1, Vec3f v2) Sets this vector to be the vector cross product of vectors v1 and v2. | |
| dot | back to summary |
|---|---|
| public float dot(Vec3f 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 float length() Returns the length of this vector.
| |
| mul | back to summary |
|---|---|
| public final void mul(float s) | |
| 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(float x, float y, float 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(Vec3f 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 | |