public class PolygonalChainByArray extends Object implements PolygonalChain
PolygonalChain that is backed by an ArrayList.| Constructor and Description |
|---|
PolygonalChainByArray(List<? extends Point> vertices)
Create a new instance which uses the given vertices.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimension()
Get the number of dimensions of this polygonal chain.
|
List<Point> |
vertices()
Get a list of the vertices defining the chain.
|
public PolygonalChainByArray(List<? extends Point> vertices)
IllegalArgumentException will be thrown.vertices - the vertices in the polygonal chainpublic int dimension()
PolygonalChaindimension in interface PolygonalChainpublic List<Point> vertices()
PolygonalChainvertices in interface PolygonalChainCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.