#include <TriangleTypes.h>
|
| static RealType | SignedArea (const TVector2< RealType > &A, const TVector2< RealType > &B, const TVector2< RealType > &C) |
| |
| static bool | IsInside (const TVector2< RealType > &A, const TVector2< RealType > &B, const TVector2< RealType > &C, const TVector2< RealType > &QueryPoint) |
| |
| static bool | IsInsideOrOn (const TVector2< RealType > &A, const TVector2< RealType > &B, const TVector2< RealType > &C, const TVector2< RealType > &QueryPoint, RealType Tolerance=(RealType) 0) |
| |
| static int | IsInsideOrOn_Oriented (const TVector2< RealType > &A, const TVector2< RealType > &B, const TVector2< RealType > &C, const TVector2< RealType > &QueryPoint, RealType Tolerance=(RealType) 0) |
| |
◆ TTriangle2() [1/3]
◆ TTriangle2() [2/3]
◆ TTriangle2() [3/3]
◆ Area()
- Returns
- unsigned area of the triangle
◆ BarycentricPoint() [1/2]
◆ BarycentricPoint() [2/2]
◆ GetBarycentricCoords()
◆ IsInside() [1/2]
- Parameters
-
| A | first vertex of triangle |
| B | second vertex of triangle |
| C | third vertex of triangle |
| QueryPoint | test point |
- Returns
- true if QueryPoint is inside triangle
◆ IsInside() [2/2]
- Returns
- true if QueryPoint is inside triangle
◆ IsInsideOrOn() [1/2]
- Returns
- true if QueryPoint is inside triangle or on edge. Note that this is slower than IsInside because of the need to handle degeneracy and tolerance.
◆ IsInsideOrOn() [2/2]
- Returns
- true if QueryPoint is inside triangle or on edge. Note that this is slower than IsInside because of the need to handle degeneracy and tolerance.
◆ IsInsideOrOn_Oriented() [1/2]
More robust (because it doesn't multiply orientation test results) inside-triangle test for oriented triangles only (the code early-outs at the first 'outside' edge, which only works if the triangle is oriented as expected)
- Returns
- 1 if outside, -1 if inside, 0 if on boundary
◆ IsInsideOrOn_Oriented() [2/2]
More robust (because it doesn't multiply orientation test results) inside-triangle test for oriented triangles only (the code early-outs at the first 'outside' edge, which only works if the triangle is oriented as expected)
- Returns
- 1 if outside, -1 if inside, 0 if on boundary
◆ SignedArea() [1/2]
- Returns
- signed area of triangle
◆ SignedArea() [2/2]
- Parameters
-
| A | first vertex of triangle |
| B | second vertex of triangle |
| C | third vertex of triangle |
- Returns
- signed area of triangle
The documentation for this struct was generated from the following file: