Function
GSQuarticToCubic(_:_:_:) GSQuarticToCubicGSQuarticToCubic
Converts from a quartic curve segment to two cubic curve segments.
Declaration
func GSQuarticToCubic(_ quartic: UnsafePointer<NSPoint>, _ cubic1: UnsafeMutablePointer<NSPoint>, _ cubic2: UnsafeMutablePointer<NSPoint>)Declaration
void GSQuarticToCubic(const NSPoint quartic[5], NSPoint cubic1[4], NSPoint cubic2[4]);Declaration
GSQuarticToCubic(quartic: NSPoint, cubic1: NSPoint, cubic2: NSPoint)Parameters
quarticThe five points of a quartic segment: start point, three control points, and the end point.
cubic1The four points of a cubic segment: start point, two control points, and the end point.
cubic2The four points of a cubic segment: start point, two control points, and the end point.
Discussion
The following constraints hold:
cubic1[0] == quartic[0]cubic1[3] == cubic2[0]cubic2[3] == quartic[4]