org.mars_sim.msp.simulation
Class IntPoint

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by org.mars_sim.msp.simulation.IntPoint
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class IntPoint
extends java.awt.Point

The IntPoint class is an extension of java.awt.Point that returns int typed X and Y coordinates.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 
Fields inherited from class java.awt.Point
x, y
 
Constructor Summary
IntPoint(int x, int y)
          Construct an IntPoint object
 
Method Summary
 int getiX()
          Returns the X coordinate of the point as int.
 int getiY()
          Returns the Y coordinate of the point as int.
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntPoint

public IntPoint(int x,
                int y)
Construct an IntPoint object

Method Detail

getiX

public int getiX()
Returns the X coordinate of the point as int.

Returns:
the X coordinate of the point as int

getiY

public int getiY()
Returns the Y coordinate of the point as int.

Returns:
the Y coordinate of the point as int