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)
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