PathPoint

class PathPoint

An object which represents the start or end point of a cubic bezier curve.

  • The coordinates of points position.

    Declaration

    var position: Point { get }
  • The second control point of the curve ending at this point.

    Declaration

    var curveFrom: Point { get }
  • The first control point of curve starting at this point.

    Declaration

    var curveTo: Point { get }
  • The corner radius used to the render the rounded corner defined by this point.

    Declaration

    var cornerRadius: Double { get }
  • The end point of the curve starting from this point.

    Declaration

    var next: PathPoint? { get }
  • The start point of the curve ending at this point.

    Declaration

    var prev: PathPoint? { 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: PathPoint) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

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