Class BoundaryList2D
java.lang.Object
org.apache.commons.geometry.core.partitioning.BoundaryList<Vector2D,LineConvexSubset>
org.apache.commons.geometry.euclidean.twod.BoundaryList2D
- All Implemented Interfaces:
BoundarySource<LineConvexSubset>,BoundarySource2D,Linecastable2D
public class BoundaryList2D
extends BoundaryList<Vector2D,LineConvexSubset>
implements BoundarySource2D
BoundarySource2D implementation that uses boundaries stored in
a list. Lists given during construction are used directly; no copies are made.
Thread safety and immutability therefore depend on the underlying list and its
usage outside of this class. The boundary list cannot be modified through this
class.-
Constructor Summary
ConstructorsConstructorDescriptionBoundaryList2D(List<? extends LineConvexSubset> boundaries) Construct a new instance with the given list of boundaries. -
Method Summary
Methods inherited from class org.apache.commons.geometry.core.partitioning.BoundaryList
boundaryStream, count, getBoundaries, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.geometry.core.partitioning.BoundarySource
boundaryStreamMethods inherited from interface org.apache.commons.geometry.euclidean.twod.BoundarySource2D
getBounds, linecast, linecastFirst, toTreeMethods inherited from interface org.apache.commons.geometry.euclidean.twod.Linecastable2D
linecast, linecastFirst
-
Constructor Details
-
BoundaryList2D
Construct a new instance with the given list of boundaries. The argument is used directly; no copy is made.- Parameters:
boundaries- list of boundaries for the instance
-
-
Method Details
-
toList
Return this instance.- Specified by:
toListin interfaceBoundarySource2D- Returns:
- this instance
-