 | AnimationCurveXIsMonotonic Method |
Determines if the specified curve is monotonic in the specified direction.
Namespace: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic 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