com.b3dgs.lionengine.geometry
Interface Coordinate2D


public interface Coordinate2D

Representation of a real 2D location (using float value).


Method Summary
 float getX()
          Get current horizontal location.
 float getY()
          Get current vertical location.
 void setLocation(float x, float y)
          Set new location.
 void translate(float vx, float vy)
          Translate location using specified vector.
 

Method Detail

translate

void translate(float vx,
               float vy)
Translate location using specified vector.

Parameters:
vx - horizontal vector.
vy - vertical vector.

setLocation

void setLocation(float x,
                 float y)
Set new location.

Parameters:
x - horizontal location.
y - vertical location.

getX

float getX()
Get current horizontal location.

Returns:
horizontal location.

getY

float getY()
Get current vertical location.

Returns:
vertical location.