QuadBezier2
extension QuadBezier2: Bezier2Type, BoundedBezier2Type
extension QuadBezier2 where Output: ConstructibleBezier2PointType
-
Returns the minimal bounding region for this quadratic Bézier curve.
Declaration
Swift
@inlinable public func boundingRegion() -> (minimum: Output, maximum: Output)
-
Returns the result of rotating the points of this Bézier curve by
angleInRadians
around the origin.Declaration
Swift
public func rotated(by angleInRadians: Output.Scalar) -> QuadBezier<Output>
-
Declaration
Swift
public func aligned(along line: LinearBezier2<Output>) -> QuadBezier<Output>
-
Declaration
Swift
public func approximateIntersection( with other: Self, threshold: Output.Scalar ) -> [(Input, Input)]
-
Gets a normal vector for this Bézier curve at a given point.
Declaration
Swift
public func normal(at input: Output.Scalar) -> Output
-
Returns the extremas for the x and y axis of this cubic Bézier curve, as two Bézier curves that represent the axis on the Y axis, and ‘t’ as the X axis, ranging from 0 to 1.
Declaration
Swift
public func extremas() -> (x: `Self`, y: `Self`)
-
Returns the roots of this quadratic Bézier.
If one or more of the roots fall outside the range of 0-1, or are not computable,
nil
is returned in their place, instead.Declaration
Swift
public func roots() -> (x: Input?, y: Input?)
-
Returns the result of the intersection of this Bézier curve against a given input line.
Declaration
Swift
public func intersection(with line: LinearBezier<Output>) -> (t0: Input?, t2: Input?)