|
| static bool | AxisTest (double a1, double a2, double b1, double b2, double c1, double c2, double half) |
| |
◆ AxisTest()
| static bool KclLibrary.TriangleHelper.AxisTest |
( |
double | a1, |
|
|
double | a2, |
|
|
double | b1, |
|
|
double | b2, |
|
|
double | c1, |
|
|
double | c2, |
|
|
double | half ) |
|
staticprivate |
◆ TriangleCubeOverlap()
| static bool KclLibrary.TriangleHelper.TriangleCubeOverlap |
( |
Triangle | t, |
|
|
Vector3 | Position, |
|
|
float | BoxSize ) |
|
static |
Returns a value indicating whether the given triangle overlaps a cube positioned at the cubeCenter expanding with cubeHalfSize .
- Parameters
-
| triangle | The Triangle to check for overlaps. |
| cubeCenter | The positional Vector3F at which the cube originates. |
| cubeHalfSize | The half length of one edge of the cube. |
- Returns
true when the triangle intersects with the cube, otherwise false.
The documentation for this class was generated from the following file: