Bezier2PointType

public protocol Bezier2PointType : BezierPointType

A 2-dimensional Bézier point type.

  • x

    The X component of this point.

    Declaration

    Swift

    var x: Scalar { get }
  • y

    The Y component of this point.

    Declaration

    Swift

    var y: Scalar { get }
  • Returns the result of rotating this vector by 90º counter-clockwise along the origin.

    Declaration

    Swift

    func leftRotated() -> Self
  • Returns the result of rotating this vector by 90º clockwise along the origin.

    Declaration

    Swift

    func rightRotated() -> Self
  • Gets the angle, in radians, of this point, as the angle between the origin and self.

    Declaration

    Swift

    func angle() -> Scalar
  • Returns the result of rotating this point around the origin by angleInRadians.

    Declaration

    Swift

    func rotated(by angleInRadians: Scalar) -> Self
  • Transposes this point such that the resulting point rests on a transformed origin line, represented by line.

    Declaration

    Swift

    func transposed(along line: LinearBezier2<Self>) -> Self