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

Static Public Member Functions

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

Static Private Member Functions

static bool planeBoxOverlap (Vector3 normal, Vector3 vert, Vector3 maxbox)
 
static float Get (Vector3 v, int id)
 
static void Set (Vector3 v, int id, float val)
 
static float fmin (double a, double b, double c)
 
static float fmax (double a, double b, double c)
 

Static Private Attributes

const int X = 0
 
const int Y = 1
 
const int Z = 2
 

Member Function Documentation

◆ fmax()

static float KclLibrary.TriangleBoxIntersect.fmax ( double a,
double b,
double c )
staticprivate

◆ fmin()

static float KclLibrary.TriangleBoxIntersect.fmin ( double a,
double b,
double c )
staticprivate

◆ Get()

static float KclLibrary.TriangleBoxIntersect.Get ( Vector3 v,
int id )
staticprivate

◆ planeBoxOverlap()

static bool KclLibrary.TriangleBoxIntersect.planeBoxOverlap ( Vector3 normal,
Vector3 vert,
Vector3 maxbox )
staticprivate

◆ Set()

static void KclLibrary.TriangleBoxIntersect.Set ( Vector3 v,
int id,
float val )
staticprivate

◆ TriBoxOverlap()

static bool KclLibrary.TriangleBoxIntersect.TriBoxOverlap ( Triangle triangle,
Vector3 cubeCenter,
Vector3 cubeHalfSize )
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 size Vector3F of a cube.
Returns
true when the triangle intersects with the cube, otherwise false.

Member Data Documentation

◆ X

const int KclLibrary.TriangleBoxIntersect.X = 0
staticprivate

◆ Y

const int KclLibrary.TriangleBoxIntersect.Y = 1
staticprivate

◆ Z

const int KclLibrary.TriangleBoxIntersect.Z = 2
staticprivate

The documentation for this class was generated from the following file: