public class Position
extends java.lang.Object
Point_3D
Constructor and Description |
---|
Position()
Empty Constructor
|
Position(float x1,
float y1)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Position p)
Checks if the two points are the same or not.
|
float |
getX()
Returns the x coordinate.
|
float |
getY()
Returns the y coordinate.
|
int |
hashCode()
Returns the hashcode for the Position.
|
void |
set(float x1,
float y1)
Set the x and y values.
|
void |
setX(float f)
Set value of x.
|
void |
setY(float f)
Set value of y.
|
public Position()
public Position(float x1, float y1)
public final float getX()
public final float getY()
public final void setX(float f)
f
- The x coordinate.public final void setY(float f)
f
- The y coordinate.public final void set(float x1, float y1)
x1
- The x coordinate.y1
- The y coordinate.public boolean equals(Position p)
public int hashCode()
hashCode
in class java.lang.Object