public class Point extends Object
Constructor and Description |
---|
Point()
Create a point set at 0.
|
Point(int x,
int y)
Create a point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
getX()
Get the horizontal location.
|
int |
getY()
Get the vertical location.
|
int |
hashCode() |
void |
set(int x,
int y)
Set the new int.
|
void |
setX(int x)
Set the new horizontal location.
|
void |
setY(int y)
Set the new vertical location.
|
void |
translate(int vx,
int vy)
Translate int using specified values.
|
public Point()
public Point(int x, int y)
x
- The horizontal location.y
- The vertical location.public void translate(int vx, int vy)
vx
- The horizontal force.vy
- The vertical force.public void set(int x, int y)
x
- The new horizontal location.y
- The new vertical location.public void setX(int x)
x
- The new horizontal location.public void setY(int y)
y
- The new vertical location.public int getX()
public int getY()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.