public class Vector3f
extends java.lang.Object
Constructor and Description |
---|
Vector3f(float x,
float y,
float z)
Creates a new Vector3f.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherVector) |
float |
getX()
Gets the x-coordinate of this vector.
|
float |
getY()
Gets the y-coordinate of this vector.
|
float |
getZ()
Gets the z-coordinate of this vector.
|
int |
hashCode() |
void |
setX(float x)
Sets the x-coordinate of this vector.
|
void |
setY(float y)
Sets the y-coordinate of this vector.
|
void |
setZ(float z)
Sets the z-coordinate of this vector.
|
public Vector3f(float x, float y, float z)
x
- the x-coordinatey
- the y-coordinatez
- the z-coordinatepublic float getX()
public float getY()
public float getZ()
public void setX(float x)
x
- he x-coordinatepublic void setY(float y)
y
- the y-coordinatepublic void setZ(float z)
z
- he z-coordinatepublic boolean equals(java.lang.Object otherVector)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object