kaos.robots.util
Class Coordinate

java.lang.Object
  extended by kaos.robots.util.Coordinate
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Pose

public class Coordinate
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int CENTIMETER
           
static int FOOT
           
static int INCH
           
static int KILOMETER
           
static int METER
           
static int MILE
           
static int MILLIMETER
           
static int PIXEL
           
 
Constructor Summary
Coordinate()
           
Coordinate(double x, double y, double z, int unit)
           
Coordinate(double x, double y, int unit)
           
 
Method Summary
 int getUnit()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MILLIMETER

public static final int MILLIMETER
See Also:
Constant Field Values

CENTIMETER

public static final int CENTIMETER
See Also:
Constant Field Values

METER

public static final int METER
See Also:
Constant Field Values

KILOMETER

public static final int KILOMETER
See Also:
Constant Field Values

INCH

public static final int INCH
See Also:
Constant Field Values

FOOT

public static final int FOOT
See Also:
Constant Field Values

MILE

public static final int MILE
See Also:
Constant Field Values

PIXEL

public static final int PIXEL
See Also:
Constant Field Values
Constructor Detail

Coordinate

public Coordinate(double x,
                  double y,
                  int unit)

Coordinate

public Coordinate(double x,
                  double y,
                  double z,
                  int unit)

Coordinate

public Coordinate()
Method Detail

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

setX

public void setX(double x)

setY

public void setY(double y)

setZ

public void setZ(double z)

getUnit

public int getUnit()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object