public class GeoRectangle extends GeoPolygon
| Constructor and Description | 
|---|
| GeoRectangle(double[] nwCorner,
            double xDim,
            double yDim)Creates a new instance of GeoRectangle | 
| GeoRectangle(double[] nwCorner,
            double xDim,
            double yDim,
            double orientation)Creates a new instance of GeoRectangle | 
| Modifier and Type | Method and Description | 
|---|---|
| AreaElementType | convertToAreaElementType()Converts the GeoRectangle to an AVCL area object | 
| double | getArea()Returns the area (square meters) of the GeoRectangle | 
| boolean | isConcave()Returns true if the polygon is concave. | 
| List<double[]> | orientedBoundingBox()Returns the corner points of an oriented bounding box for the region
 Will default to the orthogonal bounding box, so must be over-ridden for
 GeoArea types that are not necessarily orthogonally oriented (polygon) | 
| String | toString()Generates a string representation of the GeoRectangle object | 
boundingBox, boundingCircleRadius, closestPoint, contains, getAdjacentVertices, getCentroid, getIntersection, getSegmentIntersection, getSegmentIntersection2, getTangents, getVertex, isOnEdge, main, numIntersections, numVertices, onVertex, resetOrientedBoundingBox, setVertices, toMATLABStringdistance, distance, dotProduct, getLineIntersection, getLineSegmentIntersection, getLineToSegmentIntersection, isColocated, isColocated, isInLineSegment, isInSegment, isOnSegment, isOnSegmentpublic GeoRectangle(double[] nwCorner,
            double xDim,
            double yDim,
            double orientation)
nwCorner - the X, Y position of the rectangle's northwest cornerxDim - the north/south size of the rectangleyDim - the east/west size of the rectangleorientation - the rotation of the area about the northwest corner (-90 to 90 degrees)public GeoRectangle(double[] nwCorner,
            double xDim,
            double yDim)
nwCorner - the X, Y position of the rectangle's northwest cornerxDim - the north/south size of the rectangleyDim - the east/west size of the rectanglepublic double getArea()
getArea in class GeoPolygonpublic List<double[]> orientedBoundingBox()
orientedBoundingBox in class GeoPolygonpublic boolean isConcave()
isConcave in class GeoPolygonpublic String toString()
toString in class GeoPolygonpublic AreaElementType convertToAreaElementType()
convertToAreaElementType in class GeoPolygon