Contents

spline(leftEndpoint:from:to:rightEndpoint:t:)

Returns an interpolated value between two rotations along a spherical cubic spline.

Declaration

static func spline(leftEndpoint r0: Rotation3DFloat, from r1: Rotation3DFloat, to r2: Rotation3DFloat, rightEndpoint r3: Rotation3DFloat, t: Float) -> Rotation3DFloat

Return Value

A new rotation that’s the interpolated value between the two rotations along a spherical cubic spline.

Discussion

Use this function to smoothly interpolate between a sequence of rotations.