[This is preliminary documentation and is subject to change.]

Provides various math related constants and utility methods.

Namespace: org.critterai
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static class MathUtil
Public NotInheritable Class MathUtil
public ref class MathUtil abstract sealed

Members

         
 All Members  Fields   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Clamp(Int32, Int32, Int32)
Clamps the value to the specified range. The clamp is inclusive of the minimum and maximum.
ClampToPositiveNonZero(Single)
Clamps the value to a positive non-zero value.
Epsilon
A standard epsilon value. (Minimum positive value.)
Max(array<Single>[]()[][])
Returns the maximum value in the list of values.
Min(array<Single>[]()[][])
Returns the minimum value in the list of values.
SloppyEquals(Single, Single, Single)
Determines whether the values are within the specified tolerance of each other.
Tolerance
A standard tolerance value.

Remarks

Static methods are thread safe.

Inheritance Hierarchy

System..::..Object
  org.critterai..::..MathUtil

See Also