public class Vector2f
extends java.lang.Object
Constructor and Description |
---|
Vector2f(float x,
float y)
Creates a new Vector2f.
|
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.
|
int |
hashCode() |
void |
setX(float x)
Sets the x-coordinate of this vector.
|
void |
setY(float y)
Sets the y-coordinate of this vector.
|
public Vector2f(float x, float y)
x
- the x-coordinatey
- the y-coordinatepublic float getX()
public float getY()
public void setX(float x)
x
- he x-coordinatepublic void setY(float y)
y
- the y-coordinatepublic boolean equals(java.lang.Object otherVector)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object