| Back | AAM-API documentation | The AAM-Site |
Triangle container with built-in hit test.
This class is a simple triangle structure defined by three indexes to a list of points. Included functionality is a hit test.
Constructor.
Cache function.
Returns true if the point 'p' is inside the triangle.
Performs a hit test on the point p. If p is inside -- the position of p relative to the triangle is returned.
The relative position is:
p = alpha*p1 + beta*p2 + gamma*p3
Where p1-3 is the three points of the triangle.
Returns the center point of the triangle.
Returns the area.
Alphabetic index Hierarchy of classes
| Back | AAM-API documentation | The AAM-Site |