| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | |
| public float | x
The x coordinate. |
| public float | y
The y coordinate. |
| public float | z
The z coordinate. |
| Access | Constructor and Description |
|---|---|
| public | Tuple3f(float
the x coordinate x, float the y coordinate y, float the z coordinate z)Constructs and initializes a Tuple3f from the specified xyz coordinates. |
| public | Tuple3f(float[]
the array of length 3 containing xyz in order t)Constructs and initializes a Tuple3f from the array of length 3. |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | clamp(float
the lowest value in this tuple after clamping min, float the highest value in this tuple after clamping max)Clamps this tuple to the range [low, high]. |
| public final void | |
| public final void | clampMax(float
the highest value in the tuple after clamping max)Clamps the maximum value of this tuple to the max parameter. |
| public final void | |
| public final void | clampMin(float
the lowest value in this tuple after clamping min)Clamps the minimum value of this tuple to the min parameter. |
| public Object | Returns: a clone of this instance.Overrides java. |
| public boolean | Returns: true or falsethe tuple to be compared to this tuple t1, float the threshold value epsilon)Returns true if the L-infinite distance between this tuple and tuple t1 is less than or equal to the epsilon parameter, otherwise returns false. |
| public boolean | |
| public boolean | Returns: true or falsethe Object with which the comparison is made t1)Overrides java. |
| public final void | get(float[]
the array of length 3 into which the values are copied t)Gets the value of this tuple and copies the values into t. |
| public final void | |
| public final float | |
| public final float | |
| public final float | |
| public int | Returns: the integer hash code valueOverrides java. |
| public final void | interpolate(Tuple3f
the first tuple t1, Tuple3f the second tuple t2, float the alpha interpolation parameter alpha)Linearly interpolates between tuples t1 and t2 and places the result into this tuple: this = (1-alpha)*t1 + alpha*t2. |
| public final void | interpolate(Tuple3f
the first tuple t1, float the alpha interpolation parameter alpha)Linearly interpolates between this tuple and tuple t1 and places the result into this tuple: this = (1-alpha)*this + alpha*t1. |
| public final void | |
| public final void | |
| public final void | |
| public final void | scale(float
the scalar value s)Sets the value of this tuple to the scalar multiplication of the scale factor with this. |
| public final void | |
| public final void | |
| public final void | set(float
the x coordinate x, float the y coordinate y, float the z coordinate z)Sets the value of this tuple to the specified xyz coordinates. |
| public final void | set(float[]
the array of length 3 containing xyz in order t)Sets the value of this tuple to the xyz coordinates specified in the array of length 3. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public String | Returns: the String representationOverrides java. |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| 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. | |
| Tuple3f | back to summary |
|---|---|
| public Tuple3f(float x, float y, float z) Constructs and initializes a Tuple3f from the specified xyz coordinates.
| |
| Tuple3f | back to summary |
|---|---|
| public Tuple3f(float[] t) Constructs and initializes a Tuple3f from the array of length 3.
| |
| Tuple3f | back to summary |
|---|---|
| public Tuple3f(Tuple3f t1) Constructs and initializes a Tuple3f from the specified Tuple3f.
| |
| Tuple3f | back to summary |
|---|---|
| public Tuple3f(Tuple3d t1) Constructs and initializes a Tuple3f from the specified Tuple3d.
| |
| Tuple3f | back to summary |
|---|---|
| public Tuple3f() Constructs and initializes a Tuple3f to (0,0,0). | |
| absolute | back to summary |
|---|---|
| public final void absolute(Tuple3f t) Sets each component of the tuple parameter to its absolute value and places the modified values into this tuple.
| |
| absolute | back to summary |
|---|---|
| public final void absolute() Sets each component of this tuple to its absolute value. | |
| add | back to summary |
|---|---|
| public final void add(Tuple3f t1, Tuple3f t2) Sets the value of this tuple to the vector sum of tuples t1 and t2. | |
| add | back to summary |
|---|---|
| public final void add(Tuple3f t1) Sets the value of this tuple to the vector sum of itself and tuple t1.
| |
| clamp | back to summary |
|---|---|
| public final void clamp(float min, float max, Tuple3f t) Clamps the tuple parameter to the range [low, high] and places the values into this tuple.
| |
| clamp | back to summary |
|---|---|
| public final void clamp(float min, float max) Clamps this tuple to the range [low, high].
| |
| clampMax | back to summary |
|---|---|
| public final void clampMax(float max, Tuple3f t) Clamps the maximum value of the tuple parameter to the max parameter and places the values into this tuple.
| |
| clampMax | back to summary |
|---|---|
| public final void clampMax(float max) Clamps the maximum value of this tuple to the max parameter.
| |
| clampMin | back to summary |
|---|---|
| public final void clampMin(float min, Tuple3f t) Clamps the minimum value of the tuple parameter to the min parameter and places the values into this tuple.
| |
| clampMin | back to summary |
|---|---|
| public final void clampMin(float min) Clamps the minimum value of this tuple to the min parameter.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Creates a new object of the same class as this object.
| |
| epsilonEquals | back to summary |
|---|---|
| public boolean epsilonEquals(Tuple3f t1, float epsilon) Returns true if the L-infinite distance between this tuple and tuple t1 is less than or equal to the epsilon parameter, otherwise returns false. The L-infinite distance is equal to MAX[abs(x1-x2), abs(y1-y2), abs(z1-z2)].
| |
| equals | back to summary |
|---|---|
| public boolean equals(Tuple3f t1) Returns true if the Object t1 is of type Tuple3f and all of the data members of t1 are equal to the corresponding data members in this Tuple3f.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object t1) Overrides java. Returns true if the Object t1 is of type Tuple3f and all of the data members of t1 are equal to the corresponding data members in this Tuple3f.
| |
| get | back to summary |
|---|---|
| public final void get(float[] t) Gets the value of this tuple and copies the values into t.
| |
| get | back to summary |
|---|---|
| public final void get(Tuple3f t) Gets the value of this tuple and copies the values into t.
| |
| getX | back to summary |
|---|---|
| public final float getX() Get the x coordinate.
| |
| getY | back to summary |
|---|---|
| public final float getY() Get the y coordinate.
| |
| getZ | back to summary |
|---|---|
| public final float getZ() Get the z coordinate.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value based on the data values in this object. Two different Tuple3f objects with identical data values (i.e., Tuple3f.equals returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
| |
| interpolate | back to summary |
|---|---|
| public final void interpolate(Tuple3f t1, Tuple3f t2, float alpha) Linearly interpolates between tuples t1 and t2 and places the result into this tuple: this = (1-alpha)*t1 + alpha*t2. | |
| interpolate | back to summary |
|---|---|
| public final void interpolate(Tuple3f t1, float alpha) Linearly interpolates between this tuple and tuple t1 and places the result into this tuple: this = (1-alpha)*this + alpha*t1.
| |
| negate | back to summary |
|---|---|
| public final void negate(Tuple3f t1) Sets the value of this tuple to the negation of tuple t1.
| |
| negate | back to summary |
|---|---|
| public final void negate() Negates the value of this tuple in place. | |
| scale | back to summary |
|---|---|
| public final void scale(float s, Tuple3f t1) Sets the value of this vector to the scalar multiplication of tuple t1.
| |
| scale | back to summary |
|---|---|
| public final void scale(float s) Sets the value of this tuple to the scalar multiplication of the scale factor with this.
| |
| scaleAdd | back to summary |
|---|---|
| public final void scaleAdd(float s, Tuple3f t1, Tuple3f t2) Sets the value of this tuple to the scalar multiplication of tuple t1 and then adds tuple t2 (this = s*t1 + t2). | |
| scaleAdd | back to summary |
|---|---|
| public final void scaleAdd(float s, Tuple3f t1) Sets the value of this tuple to the scalar multiplication of itself and then adds tuple t1 (this = s*this + t1).
| |
| set | back to summary |
|---|---|
| public final void set(float x, float y, float z) Sets the value of this tuple to the specified xyz coordinates.
| |
| set | back to summary |
|---|---|
| public final void set(float[] t) Sets the value of this tuple to the xyz coordinates specified in the array of length 3.
| |
| set | back to summary |
|---|---|
| public final void set(Tuple3f t1) Sets the value of this tuple to the value of tuple t1.
| |
| set | back to summary |
|---|---|
| public final void set(Tuple3d t1) Sets the value of this tuple to the value of tuple t1.
| |
| setX | back to summary |
|---|---|
| public final void setX(float x) Set the x coordinate.
| |
| setY | back to summary |
|---|---|
| public final void setY(float y) Set the y coordinate.
| |
| setZ | back to summary |
|---|---|
| public final void setZ(float z) Set the Z coordinate.
| |
| sub | back to summary |
|---|---|
| public final void sub(Tuple3f t1, Tuple3f t2) Sets the value of this tuple to the vector difference of tuples t1 and t2 (this = t1 - t2). | |
| sub | back to summary |
|---|---|
| public final void sub(Tuple3f t1) Sets the value of this tuple to the vector difference of itself and tuple t1 (this = this - t1) .
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string that contains the values of this Tuple3f. The form is (x,y,z).
| |