org.osm2world.core.math
public class PolygonWithHolesXZ extends Object
Constructor and Description |
---|
PolygonWithHolesXZ(SimplePolygonXZ outerPolygon,
List<SimplePolygonXZ> holes) |
Modifier and Type | Method and Description |
---|---|
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
|
List<VectorXZ> |
intersectionPositions(LineSegmentXZ lineSegment) |
Collection<VectorXZ> |
intersectionPositions(PolygonWithHolesXZ p2) |
boolean |
intersects(LineSegmentXZ lineSegment) |
boolean |
intersects(SimplePolygonXZ other) |
public PolygonWithHolesXZ(SimplePolygonXZ outerPolygon, List<SimplePolygonXZ> holes)
public SimplePolygonXZ getOuter()
public List<SimplePolygonXZ> getHoles()
public List<SimplePolygonXZ> getPolygons()
public TriangleXZ asTriangleXZ()
public boolean contains(SimplePolygonXZ boundary)
public boolean contains(VectorXZ v)
public boolean contains(LineSegmentXZ lineSegment)
public boolean intersects(LineSegmentXZ lineSegment)
public boolean intersects(SimplePolygonXZ other)
public List<VectorXZ> intersectionPositions(LineSegmentXZ lineSegment)
public Collection<VectorXZ> intersectionPositions(PolygonWithHolesXZ p2)
public double getArea()