PathElement

public enum PathElement
extension PathElement: Equatable
extension PathElement: CustomStringConvertible

Element within a Path.

Cases

  • Move to point.

    Declaration

    Swift

    case move(Point)
  • Add line to point.

    Declaration

    Swift

    case line(Point)
  • Add quadratic bézier curve to point, with control point.

    Declaration

    Swift

    case quadCurve(Point, Point)
  • Add cubic bézier curve to point, with two control points.

    Declaration

    Swift

    case curve(Point, Point, Point)
  • Close subpath.

    Declaration

    Swift

    case close

Instance Properties

  • Declaration

    Swift

    public var isVertex: Bool { get }

    Return Value

    true if this PathElement represents a vertex (not a curve or close). Otherwsie, false.

  • Declaration

    Swift

    public var point: Point? { get }

    Return Value

    The destination point of PathElement.

CustomStringConvertible

  • Printable description of PathElement.

    Declaration

    Swift

    public var description: String { get }