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 and Description |
---|
BoundaryList2D(List<? extends LineConvexSubset> boundaries)
Construct a new instance with the given list of boundaries.
|
Modifier and Type | Method and Description |
---|---|
BoundaryList2D |
toList()
Return this instance.
|
boundaryStream, count, getBoundaries, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBounds, linecast, linecastFirst, of, of, toTree
boundaryStream
linecast, linecastFirst
public BoundaryList2D(List<? extends LineConvexSubset> boundaries)
boundaries
- list of boundaries for the instancepublic BoundaryList2D toList()
toList
in interface BoundarySource2D
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.