Class PolygonalChainByArray

    • Constructor Detail

      • PolygonalChainByArray

        public PolygonalChainByArray​(List<? extends Point> vertices)
        Create a new instance which uses the given vertices. All vertices must have the same size or an IllegalArgumentException will be thrown.
        Parameters:
        vertices - the vertices in the polygonal chain
    • Method Detail

      • dimension

        public int dimension()
        Description copied from interface: PolygonalChain
        Get the number of dimensions of this polygonal chain.
        Specified by:
        dimension in interface PolygonalChain
        Returns:
        the number of dimensions of this chain
      • vertices

        public List<Point> vertices()
        Description copied from interface: PolygonalChain
        Get a list of the vertices defining the chain. All points must have the same dimension.
        Specified by:
        vertices in interface PolygonalChain
        Returns:
        the vertices defining the chain