org.osm2world.core.math
Class PolygonWithHolesXZ
Object
PolygonWithHolesXZ
public class PolygonWithHolesXZ
- extends Object
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolygonWithHolesXZ
public PolygonWithHolesXZ(SimplePolygonXZ outerPolygon,
List<SimplePolygonXZ> holes)
getOuter
public SimplePolygonXZ getOuter()
getHoles
public List<SimplePolygonXZ> getHoles()
getPolygons
public List<SimplePolygonXZ> getPolygons()
- returns a list that contains the outer polygon and all holes
asTriangleXZ
public TriangleXZ asTriangleXZ()
contains
public boolean contains(SimplePolygonXZ boundary)
contains
public boolean contains(VectorXZ v)
contains
public boolean contains(LineSegmentXZ lineSegment)
intersects
public boolean intersects(LineSegmentXZ lineSegment)
intersects
public boolean intersects(SimplePolygonXZ other)
intersectionPositions
public Collection<VectorXZ> intersectionPositions(LineSegmentXZ lineSegment)
intersectionPositions
public Collection<VectorXZ> intersectionPositions(PolygonWithHolesXZ p2)
getArea
public double getArea()