com.hedgehog.geo.twod.shapes
Class Square2D
java.lang.Object
com.hedgehog.HObject
com.hedgehog.geo.GeometricObject
com.hedgehog.geo.twod.GeometricObject2D
com.hedgehog.geo.twod.shapes.Shape2D
com.hedgehog.geo.twod.shapes.Polygon2D
com.hedgehog.geo.twod.shapes.StraightEdgePolygon2D
com.hedgehog.geo.twod.shapes.ConvexStraightEdgePolygon2D
com.hedgehog.geo.twod.shapes.RegularPolygon2D
com.hedgehog.geo.twod.shapes.Square2D
- All Implemented Interfaces:
- ModelObject, java.lang.Comparable, java.util.Comparator
public class Square2D
- extends RegularPolygon2D
- implements ModelObject
Title: Square2D - models a square.
Description: Represents a square.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software.
- Since:
- 1.0
- Version:
- 1.1
| Methods inherited from class com.hedgehog.geo.twod.shapes.RegularPolygon2D |
apothemLength, area, centroid, circumscribedCircle, exteriorEdgeVertexAngle, exteriorVertexAngle, inscribedCircle, interiorVertexAngle, isEquilateralTriangle, isHexagon, isPentagon, isSquare, isValid, perimeter, polygonType, sumOfExteriorAngles, sumOfInteriorAngles, unitEquilateralTriangle, unitHexagon, unitPentagon, unitSquare |
| Methods inherited from class com.hedgehog.geo.twod.shapes.ConvexStraightEdgePolygon2D |
centroidEdgeConeTriangle, centroidEdgeConeTriangle, centroidEdgeConeTriangles, centroidEdgeConeTriangles, centroidEdgeTriangle, centroidEdgeTriangles, exteriorVertexAngle, interiorVertexAngle, isAllInteriorAnglesSame, isEquilateralTriangle, isRegular, pointInCentroidEdgeConeTriangle, pointInCentroidEdgeTriangle, pointInside, pointInside, pointTangents, pointTangents, sumExteriorVertexAngles, sumInteriorVertexAngles |
| Methods inherited from class com.hedgehog.geo.twod.shapes.StraightEdgePolygon2D |
boundingBox, boundingCentroidCircle, childModelObjects, circleInside, convexHull, curveInPolygon, databaseInsertStatement, databaseUpdateStatement, dissectionIntoTriangles, dissectionIntoTriangulation, earVertex, edgesAboveHorizontalLine, edgesBelowHorizontalLine, edgesCutByHorizontalLine, edgesCutByVerticalLine, edgesToLeftOfVerticalLine, edgesToRightOfVerticalLine, fromDatabase, fromXMLNode, getEdge, intersection, isConvex, isConvexVertex, isConvexVertex, isConvexVertex, isDiagonal, isEarVertex, isEquiangular, isSimple, pointInsideCrossingNumber, pointInsideWindingNumber, pointOutside, rotate, scale, signedArea, simplifiedPolygon, toIndexPolygon2D, toStraightEdgeTriangle2D, toString, toX3DNode, toXMLNode, translate, vertexIndexAdjacentTriples, vertexOrdering |
| Methods inherited from class com.hedgehog.geo.twod.shapes.Polygon2D |
addVertex, addVertex, addVerticesBetween, clearVertices, edgeIndex, edgesInCommon, edgesNotInCommon, edgeVector, getEdges, getVertex, getVertices, isAllEdgesSameLength, isEdge, isEdgeIndex, isQuadrilateral, isTriangle, isVertex, isVertexIndex, leftEdgeIndex, leftVertexIndex, leftVertexIndex, longestEdge, maxVertexXCoordinate, maxVertexYCoordinate, maxXVertex, maxXVertexIndex, maxYVertex, maxYVertexIndex, minmax, minVertexXCoordinate, minVertexYCoordinate, minXVertex, minXVertexIndex, minYVertex, minYVertexIndex, nextVertex, nextVertex, nextVertexIndex, numberEdges, numberVertices, otherVertices, parametricValuesOfVertices, perimeterFromVertexGivenPoint, pointFromVertexGivenPerimeter, pointOnBoundary, pointOnEdge, previousVertex, previousVertex, previousVertexIndex, removeVertex, removeVertex, removeVertex, removeVertex, replaceVertex, replaceVertex, replaceVerticesBetween, replaceVerticesBetween, rightEdgeIndex, rightVertexIndex, rightVertexIndex, samePolygon, setVertex, setVertices, shareVertex, shortestEdge, toPoint2DSet, vertexIDs, vertexIndex, vertexSense, vertexVector, verticesArray, verticesInCommon, verticesNotInCommon |
| Methods inherited from class com.hedgehog.geo.twod.shapes.Shape2D |
areaDifference, is2D, is3D, isCurve, isGrid, isMesh, isPoint, isPointSet, isShape, isSurface, translate |
| Methods inherited from class com.hedgehog.HObject |
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Square2D
public Square2D()
- Default constructor.
Square2D
public Square2D(Point2D v0,
Point2D v1,
Point2D v2,
Point2D v3)
- Constructor. Creates a new square from the specified points.
- Parameters:
v0 - Point 0.v1 - Point 1.v2 - Point 2.v3 - Point 3.
Square2D
public Square2D(java.util.Vector<Point2D> vertices)
throws java.lang.IllegalArgumentException
- Constructor. Creates a new square from the specified vector of points.
- Parameters:
vertices - Vector of points.
- Throws:
java.lang.IllegalArgumentException - Thrown if vertices is null or not of size 4.
Square2D
public Square2D(Square2D object)
- Copy constructor.
- Parameters:
object - Object to copy.