Path

class Path

A series of points that defines the shape of an element.

  • property documentation (update this)

    Declaration

    var points: Array { get }
  • property documentation (update this)

    Declaration

    var closed: Bool { get }
  • property documentation (update this)

    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.

  • Returns the curve of a point along a path.

    The value along the path goes between 0 for the first point to N for the last point where N is the number of points. The fractional part of parameter is used to interpolate between consecutive points.

    Declaration

    func pointAt(_ pointAt: Double) -> Point?

    Parameters

    pointAt

    The point that you wish to recieve curve of.

    Return Value

    The curve of a point along a path.