public class Position extends Object
| Constructor and Description |
|---|
Position(float x,
float y)
Creates a position at the given coordinates.
|
public Position(float x,
float y)
x - the x coordinate.y - the y coordinate.public float getX()
public float getY()
public Position add(float x, float y)
x - the x offset to add.y - the y offset to add.Copyright © 2021. All rights reserved.