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

Provides various 2D triangle 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 Triangle2
Public NotInheritable Class Triangle2
public ref class Triangle2 abstract sealed

Members

      
 All Members  Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Contains(Vector2, Vector2, Vector2, Vector2)
Returns true if the point is contained by the triangle.
GetSignedAreaX2(Vector2, Vector2, Vector2)
The absolute value of the returned value is two times the area of the triangle ABC.
GetSignedAreaX2(Int32, Int32, Int32, Int32, Int32, Int32)
The absolute value of the returned value is two times the area of the triangle ABC. (Integer version.)
GetSignedAreaX2(Single, Single, Single, Single, Single, Single)
The absolute value of the returned value is two times the area of the triangle ABC.

Remarks

Static methods are thread safe.

Inheritance Hierarchy

System..::..Object
  org.critterai.geom..::..Triangle2

See Also