Click or drag to resize
DigitalRuneInterpolationHelperSquadSetup Method (QuaternionF, QuaternionF, QuaternionF, QuaternionF, QuaternionF, QuaternionF, QuaternionF, QuaternionF)
Calculates the parameters for a spline-based quaternion interpolation (single-precision).

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static void SquadSetup(
	QuaternionF q0,
	QuaternionF q1,
	QuaternionF q2,
	QuaternionF q3,
	out QuaternionF q,
	out QuaternionF a,
	out QuaternionF b,
	out QuaternionF p
)

Parameters

q0
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The previous quaternion (qn-1).
q1
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The source quaternion (qn).
q2
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The target quaternion (qn+1).
q3
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The subsequent quaternion (qn+2).
q
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The source quaternion (qn).
a
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The first intermediate quaternion (an).
b
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The second intermediate quaternion (an+1).
p
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The target quaternion (qn+1).
Remarks
Given a sequence of quaternions, this method calculates the intermediate quaternions that are required by the method Squad(QuaternionF, QuaternionF, QuaternionF, QuaternionF, Single) to perform a smooth spline-based interpolation. See Squad(QuaternionF, QuaternionF, QuaternionF, QuaternionF, Single) to find out more.
See Also