Click or drag to resize
DigitalRuneInterpolationHelperSquadSetup Method (QuaternionD, QuaternionD, QuaternionD, QuaternionD, QuaternionD, QuaternionD, QuaternionD, QuaternionD)
Calculates the parameters for a spline-based quaternion interpolation (double-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(
	QuaternionD q0,
	QuaternionD q1,
	QuaternionD q2,
	QuaternionD q3,
	out QuaternionD q,
	out QuaternionD a,
	out QuaternionD b,
	out QuaternionD p
)

Parameters

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