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

Provides various 2D rectangle utility methods.

Namespace: org.critterai.geom
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 Rectangle2
Public NotInheritable Class Rectangle2
public ref class Rectangle2 abstract sealed

Members

      
 All Members  Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Contains(Single, Single, Single, Single, Single, Single)
Indicates whether or not a point is contained within an axis-aligned rectangle.
Contains(Single, Single, Single, Single, Single, Single, Single, Single)
Indicates whether or not an axis-alighed rectangle (B) is fully contained within another axis-aligned rectangle (A).
IntersectsAABB(Single, Single, Single, Single, Single, Single, Single, Single)
Indicates whether or not two axis-aligned rectangles intersect.

Remarks

Static methods are thread safe.

Inheritance Hierarchy

System..::..Object
  org.critterai.geom..::..Rectangle2

See Also