Interface PolygonalChain

  • All Known Implementing Classes:
    PolygonalChainByArray

    public interface PolygonalChain
    A polygonal chain, polygonal curve, polygonal path, or piecewise linear curve, is a connected series of line segments. More formally, a polygonal chain P is a curve specified by a sequence of points called its vertices so that the curve consists of the line segments connecting the consecutive vertices.

    This interface represents a polygonal chain, in an arbitrary dimensional Cartesian space. It is specified by a finite, ordered list of points.

    See Also:
    Wikipedia: Polygonal chain
    • Method Detail

      • vertices

        List<Point> vertices()
        Get a list of the vertices defining the chain. All points must have the same dimension.
        Returns:
        the vertices defining the chain
      • dimension

        int dimension()
        Get the number of dimensions of this polygonal chain.
        Returns:
        the number of dimensions of this chain