Path

class Path

An object representing a curved path in 2-dimensional space. The path is defined by a contiguous sequence of cubic bezier curves.

  • An ordered list of points which define the path.

    Declaration

    var points: Array { get }
  • true if a line connecting first and last points should be drawn when the path is rendered, false otherwise. This property has no effect on the final rendering of the path when the first and last point have the same position.

    Declaration

    var closed: Bool { get }
  • An approximation of the arc length of the path.

    Declaration

    var length: Double { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Path) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.