org.osm2world.core.math
Class PolygonWithHolesXZ

Object
  extended by PolygonWithHolesXZ

public class PolygonWithHolesXZ
extends Object


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

Constructor Detail

PolygonWithHolesXZ

public PolygonWithHolesXZ(SimplePolygonXZ outerPolygon,
                          List<SimplePolygonXZ> holes)
Method Detail

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