Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
KclLibrary.TriangleHelper Class Reference

Static Public Member Functions

static bool TriangleCubeOverlap (Triangle t, Vector3 Position, float BoxSize)
 Returns a value indicating whether the given triangle overlaps a cube positioned at the cubeCenter expanding with cubeHalfSize .
 

Static Private Member Functions

static bool AxisTest (double a1, double a2, double b1, double b2, double c1, double c2, double half)
 

Member Function Documentation

◆ 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
triangleThe Triangle to check for overlaps.
cubeCenterThe positional Vector3F at which the cube originates.
cubeHalfSizeThe 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: