public interface IAdvancedLocation extends ILocation
| Modifier and Type | Method and Description |
|---|---|
ILocation |
getLocationCopy() |
void |
scale(double amount)
Changes the current location.
|
ILocation |
setLocation(ILocation location)
Sets the location.
|
ILocation |
setLocation(int x,
int y)
Sets the location.
|
ILocation |
translate(int dx,
int dy)
Translates the current location.
|
ILocation getLocationCopy()
ILocation setLocation(int x, int y)
x - the new x coordinate of the locationy - the new y coordinate of the locationILocation setLocation(ILocation location)
location - the location which contains the new x and y coordinatesvoid scale(double amount)
amount - x and y coordinate of the location will be multiplied with
this amountILocation translate(int dx, int dy)
dx - this value will be added to the x coordinatedy - this value will be added to the y coordinate