com.mizar.geometry
Class OrthoPolygon

java.lang.Object
  extended by com.mizar.geometry.Geometry
      extended by com.mizar.geometry.Polyline
          extended by com.mizar.geometry.Polygon
              extended by com.mizar.geometry.OrthoPolygon
All Implemented Interfaces:
OneCell, TwoCell
Direct Known Subclasses:
Rectangle

public class OrthoPolygon
extends Polygon

OrthoPolygon enforces a right-angle constraint


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mizar.geometry.Geometry
Geometry.Results
 
Field Summary
protected static boolean orthogonal
           
 
Fields inherited from class com.mizar.geometry.Polyline
equiangular, equilateral
 
Fields inherited from class com.mizar.geometry.Geometry
defaultOrdinates, dimensions, geographic, LEFTSIDE, maximumCoordinates, mbr, minimumCoordinates, ONLINE, ordinates, precision, results, RIGHTSIDE, SIDE, toStringDecimals
 
Constructor Summary
OrthoPolygon()
           
OrthoPolygon(double[] ordinates)
           
 
Method Summary
protected  boolean validate()
           
 
Methods inherited from class com.mizar.geometry.Polygon
closeArea, computePolygonArea, computePolygonCentroid, getArea, getAreaAbsolute, getCentroid, isPointInsideMBR, isPointInsidePolygon, isPointInsidePolygon, isPointInsidePolygon, isPointInsidePolygon, isPointInsidePolygonX, main, polygonArea, polygonAreaAbsolute, polygonCentroid
 
Methods inherited from class com.mizar.geometry.Polyline
addCoordinate, addCoordinate, addPoint, breakAtCoordinateIndex, changeDimensionality, clone, conflateTo, contains, contains, contains, getClosestPoint, getClosestSegment, getCoordinateOnLine, getDistanceTo, getDistanceTo, getEndPoint, getEndPointXY, getLength, getLength3D, getLine, getLine, getLineOrdinates, getOrdinatesBetween, getPointAsCrowFlies, getPointAsCrowFlies, getPointAtDistance, getPointAtDistance, getRemainingOrdinates, getSegmentAtDistance, getSegmentAtDistance, getSegments, getSelfIntersections, getShortestDistance, getStartPoint, getStartPointXY, getWkt, hasIntersections, hasNonconnectingIntersections, intersect, intersect, isEquiangular, isEquilateral, isOrthogonal, isPointOnLine, isSame, isSelfIntersecting, join, length, length, lengthAlong, lengthAlong, lengthBetween, lengthBetween, patch, patch, removeCoordinate, reverse, reverse, setEquiangular, setEquilateral, setOrthogonal, shiftParallel, shiftParallel, shiftParallel, shiftParallel, snap, snap, snap, snap, split, split, thin, thin, thin, thinSimple, thinSimple
 
Methods inherited from class com.mizar.geometry.Geometry
adjustEndPoints, adjustEndPoints, adjustEndPoints, adjustEndPoints, changeDimensions, computeMbr, computeMbr, computeMbr, computeNearestDistance, computeNearestDistance, connectsTo, connectsTo, connectsTo, connectsTo, constructDefaultPoint, equals, expandMbr, getCoordinate, getCoordinates, getCoordinates, getCoordinates, getCoordinates, getDefaultOrdinates, getDimensions, getEndCoordinateIndex, getFirstPoint, getFirstPoint, getLastPoint, getLastPoint, getLeastDimension, getLeastPrecise, getLength, getMaximumCoordinates, getMbr, getMbrCorner, getMbrCorner, getMinimumCoordinates, getMostPrecise, getNumberOfCoordiates, getOrdinates, getPoints, getPointWithMatchingDimensions, getPrecision, getRange, getRange, getResults, getSegment, getToStringDecimals, getXYCoordinates, getXYCoordinates, hashCode, isCoveredByMbr, isEqualOrBetween, isGeographic, isInsideMbr, isSame, mbrIntersect, mbrOverlap, mbrOverlap, mbrOverlapRatio, mbrValid, polygonizeMbr, quadrant, seedMbr, setCoordinate, setCoordinates, setCoordinates, setDefaultOrdinates, setDimensions, setFirstPoint, setGeographic, setLastPoint, setMaximumCoordinates, setMinimumCoordinates, setOrdinates, setPrecision, setSegment, setToStringDecimals, toString, updateMbr
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mizar.geometry.TwoCell
getDimensions
 
Methods inherited from interface com.mizar.geometry.OneCell
getDimensions, getFirstPoint, getLastPoint, setFirstPoint, setLastPoint
 

Field Detail

orthogonal

protected static boolean orthogonal
Constructor Detail

OrthoPolygon

public OrthoPolygon()

OrthoPolygon

public OrthoPolygon(double[] ordinates)
             throws GeometryException
Throws:
GeometryException
Method Detail

validate

protected boolean validate()