java.io.Serializable
Point4f
public abstract class Tuple4f
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
float |
w |
The w coordinate.
|
float |
x |
The x coordinate.
|
float |
y |
The y coordinate.
|
float |
z |
The z coordinate.
|
Constructor | Description |
---|---|
Tuple4f() |
Constructs and initializes a Tuple4f to (0,0,0,0).
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
Returns true if all of the data members of Object are equal to the
corresponding data members in this
|
int |
hashCode() |
Returns a hash number based on the data values in this object.
|
void |
scale(float s) |
Sets the value of this tuple to the scalar multiplication of itself.
|
void |
set(float x,
float y,
float z,
float w) |
Sets the value of this tuple to the specified xyzw coordinates.
|
java.lang.String |
toString() |
Returns a string that contains the values of this Tuple4f.
|
public float x
public float y
public float z
public float w
public final void set(float x, float y, float z, float w)
x
- the x coordinatey
- the y coordinatez
- the z coordinatew
- the w coordinatepublic final void scale(float s)
s
- the scalar valuepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the vector with which the comparison is made.public java.lang.String toString()
toString
in class java.lang.Object