org.vigia.client.driver
Class Coordinates

java.lang.Object
  extended by org.vigia.client.driver.Coordinates

public class Coordinates
extends java.lang.Object

Coordinates that represent the position of the Wiimote with respect to the infrared leds.

Author:
Ada

Field Summary
private  int x
          X coordinate
private  int y
          Y coordinate
private  float z
          Z coordinate (distance from the infrared leds)
 
Constructor Summary
Coordinates(int x, int y, float z)
          Constructor.
 
Method Summary
 int getX()
          Gets the x coordinate.
 int getY()
          Gets the y coordinate.
 float getZ()
          Gets the z coordinate.
 void setX(int x)
          Sets the x coordinate.
 void setY(int y)
          Sets the y coordinate.
 void setZ(float z)
          Sets the z coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

private int x
X coordinate


y

private int y
Y coordinate


z

private float z
Z coordinate (distance from the infrared leds)

Constructor Detail

Coordinates

public Coordinates(int x,
                   int y,
                   float z)
Constructor.

Parameters:
x - X coordinate.
y - Y coordinate.
z - Z coordinate.
Method Detail

getX

public int getX()
Gets the x coordinate.

Returns:
the x coordinate.

getY

public int getY()
Gets the y coordinate.

Returns:
the y coordinate.

getZ

public float getZ()
Gets the z coordinate.

Returns:
the z coordinate.

setX

public void setX(int x)
Sets the x coordinate.

Parameters:
x - the new coordinate x.

setY

public void setY(int y)
Sets the y coordinate.

Parameters:
y - the new coordinate y.

setZ

public void setZ(float z)
Sets the z coordinate.

Parameters:
z - the new z coordinate.