Class RectDouble

java.lang.Object
  extended byRectDouble

public class RectDouble
extends java.lang.Object

RectDouble Class

This class represents a rectangle with double coordinates


Field Summary
static double down
          Y-coordinate of the rectangle bottom
static double left
          X-coordinate of the rectangle left side
static double right
          X-coordinate of the rectangle right side
static double top
          Y-coordinate of the rectangle top
 
Constructor Summary
RectDouble(double top, double left, double down, double right)
          Constructs the rectangle
 
Method Summary
 double getCentreX()
          Returns the X-coordinate of the rectangle center
 double getCentreY()
          Returns the Y-coordinate of the rectangle center
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

public static double top
Y-coordinate of the rectangle top


down

public static double down
Y-coordinate of the rectangle bottom


left

public static double left
X-coordinate of the rectangle left side


right

public static double right
X-coordinate of the rectangle right side

Constructor Detail

RectDouble

public RectDouble(double top,
                  double left,
                  double down,
                  double right)
Constructs the rectangle

Method Detail

getCentreX

public double getCentreX()
Returns the X-coordinate of the rectangle center


getCentreY

public double getCentreY()
Returns the Y-coordinate of the rectangle center