simd_bezier(_:_:_:_:_:)
Declaration
func simd_bezier(_ q0: simd_quath, _ q1: simd_quath, _ q2: simd_quath, _ q3: simd_quath, _ t: Float16) -> simd_quathDiscussion
Spherical cubic Bezier interpolation between quaternions.
The function treats q0 … q3 as control points and uses slerp in place of lerp in the De Castlejeau algorithm. The endpoints of interpolation are thus q0 and q3, and the curve will not generally pass through q1 or q2. Note that the convex hull property of “standard” Bezier curve does not hold on the sphere.