Class AbstractPolygon
java.lang.Object
net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
net.buildtheearth.terraminusminus.dataset.vector.geometry.polygon.AbstractPolygon
- All Implemented Interfaces:
Comparable<VectorGeometry>,VectorGeometry,Bounds2d
- Direct Known Subclasses:
DistancePolygon,FillPolygon
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected final doubleprotected final doubleprotected final doubleprotected final IntervalTree<Segment> Fields inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
draw, id, layer -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPolygon(@NonNull String id, double layer, @NonNull DrawFunction draw, @NonNull MultiPolygon polygons) -
Method Summary
Methods inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
canEqual, convertToSegments, draw, equals, hashCode, id, layerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.buildtheearth.terraminusminus.util.bvh.Bounds2d
contains, expand, intersects, toCornerBB, toTiles, union, validateMethods inherited from interface net.buildtheearth.terraminusminus.dataset.vector.geometry.VectorGeometry
apply, compareTo
-
Field Details
-
segments
-
minX
protected final double minX -
maxX
protected final double maxX -
minZ
protected final double minZ -
maxZ
protected final double maxZ
-
-
Constructor Details
-
AbstractPolygon
public AbstractPolygon(@NonNull @NonNull String id, double layer, @NonNull @NonNull DrawFunction draw, @NonNull @NonNull MultiPolygon polygons)
-
-
Method Details
-
getIntersectionPoints
protected double[] getIntersectionPoints(int pos) -
segments
-
minX
public double minX()- Returns:
- the minimum X coordinate
-
maxX
public double maxX()- Returns:
- the maximum X coordinate
-
minZ
public double minZ()- Returns:
- the minimum Z coordinate
-
maxZ
public double maxZ()- Returns:
- the maximum Z coordinate
-