Click or drag to resize
AnimationCurveXGetTrimmedCurve Method (AnimationCurve, Int32, Int32, Single, Single)
Gets a trimmed version of the supplied curve.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static AnimationCurve GetTrimmedCurve(
	this AnimationCurve curve,
	int startFrame,
	int endFrame,
	float frameRate,
	float tangentSamplingFrequency
)

Parameters

curve
Type: AnimationCurve
Curve.
startFrame
Type: SystemInt32
Start frame.
endFrame
Type: SystemInt32
End frame.
frameRate
Type: SystemSingle
Frame rate.
tangentSamplingFrequency
Type: SystemSingle
Tangent sampling frequency.

Return Value

Type: AnimationCurve
A new curve trimmed to the specified domain.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AnimationCurve. 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).
See Also