jdsl.geomobj.api
Interface Rectangle2D

All Superinterfaces:
ClosedCurve2D, Curve2D, GeomObject, GeomObject2D
All Known Implementing Classes:
IntRectangle2D, RatRectangle2D

public interface Rectangle2D
extends ClosedCurve2D

This interface describes a two-dimensional rectangle with sides parallel to the x-axis and y-axis. Geometric tests should be performed through methods of GeomTester2D.

Version:
$Id: Rectangle2D.java,v 1.1 2000/03/22 20:27:02 lv Exp $
Author:
Luca Vismara (lv)

Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Fields inherited from interface jdsl.geomobj.api.GeomObject2D
NONE
 
Method Summary
 Point2D bottomLeftPoint()
           
 Point2D bottomRightPoint()
           
 Point2D topLeftPoint()
           
 Point2D topRightPoint()
           
 
Methods inherited from interface jdsl.geomobj.api.ClosedCurve2D
points
 
Methods inherited from interface jdsl.geomobj.api.GeomObject
arithmeticType, dim
 

Method Detail

topLeftPoint

public Point2D topLeftPoint()
Returns:
the top-left point of this

topRightPoint

public Point2D topRightPoint()
Returns:
the top-right point of this

bottomLeftPoint

public Point2D bottomLeftPoint()
Returns:
the bottom-left point of this

bottomRightPoint

public Point2D bottomRightPoint()
Returns:
the bottom-right point of this