Click or drag to resize
QuaternionXInterpolateSlime Method (IListQuaternionInterpolationTarget, Int32)
Perform commutative, fixed tangent-space, weighted interpolation of the specified targets.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static Quaternion InterpolateSlime(
	this IList<QuaternionInterpolationTarget> targets,
	int iterations = 5
)

Parameters

targets
Type: System.Collections.GenericIListQuaternionInterpolationTarget
Targets.
iterations (Optional)
Type: SystemInt32
Number of iterations to use for computation of mean Quaternion sample.

Return Value

Type: Quaternion
The weighted average of the supplied targets.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListQuaternionInterpolationTarget. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Formula: reference*e^(sum(weight*ln(reference.conjugate*target.rotation))) See p.130, 136: http://alumni.media.mit.edu/~aries/papers/johnson_phd.pdf
See Also