Click or drag to resize
AnimationCurveXIsMonotonic Method
Determines if the specified curve is monotonic in the specified direction.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static bool IsMonotonic(
	this AnimationCurve curve,
	int direction,
	float samplingFrequency = 1E-05f
)

Parameters

curve
Type: AnimationCurve
Curve.
direction
Type: SystemInt32
0 to test for uniformity, greater than 0 to test for increasing, and less than 0 to test for decreasing.
samplingFrequency (Optional)
Type: SystemSingle
Sampling frequency (Mathf.Epsilon, Mathf.Infinity).

Return Value

Type: Boolean
if the specified curve is monotonic in the specified direction; otherwise, .

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