Function

simd_spline(_:_:_:_:_:)

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

Declaration

func simd_spline(_ q0: simd_quatf, _ q1: simd_quatf, _ q2: simd_quatf, _ q3: simd_quatf, _ t: Float) -> simd_quatf

See Also

Quaternion Functions

func simd_act(simd_quatf, simd_float3) -> simd_float3

Returns a vector rotated by a quaternion.

func simd_angle(simd_quatf) -> Float

Returns the angle by which a quaternion rotates.

func simd_axis(simd_quatf) -> simd_float3

Returns the axis about which a quaternion rotates.

func simd_bezier(simd_quatf, simd_quatf, simd_quatf, simd_quatf, Float) -> simd_quatf

Returns the spherical cubic Bezier interpolation between quaternions.

func simd_conjugate(simd_quatf) -> simd_quatf

Returns the conjugate of a quaternion.

func simd_imag(simd_quatf) -> simd_float3

Returns the imaginary (vector) part of a quaternion.

func simd_negate(simd_quatf) -> simd_quatf

Returns the negation of a quaternion.

func simd_real(simd_quatf) -> Float

Returns the real (scalar) part of a quaternion.

func simd_slerp(simd_quatf, simd_quatf, Float) -> simd_quatf

Returns a spherical linearly interpolated value along the shortest arc between two quaternions.

func simd_slerp_longest(simd_quatf, simd_quatf, Float) -> simd_quatf

Returns a spherical linearly interpolated value along the longest arc between two quaternions.