Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
tri.h File Reference
#include "always.h"
#include "vector4.h"
#include "vector3.h"
#include "vector2.h"
#include <assert.h>

Go to the source code of this file.

Classes

class  TriClass
 

Macros

#define TRI_H
 

Enumerations

enum  { TRI_RAYCAST_FLAG_NONE = 0x00 , TRI_RAYCAST_FLAG_HIT_EDGE = 0x01 , TRI_RAYCAST_FLAG_START_IN_TRI = 0x02 }
 

Functions

bool Point_In_Triangle_2D (const Vector3 &tri_point0, const Vector3 &tri_point1, const Vector3 &tri_point2, const Vector3 &test_point, int axis_1, int axis_2, unsigned char &flags)
 
bool Cast_Semi_Infinite_Axis_Aligned_Ray_To_Triangle (const Vector3 &tri_point0, const Vector3 &tri_point1, const Vector3 &tri_point2, const Vector4 &tri_plane, const Vector3 &ray_start, int axis_r, int axis_1, int axis_2, int direction, unsigned char &flags)
 

Macro Definition Documentation

◆ TRI_H

#define TRI_H

Definition at line 43 of file tri.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRI_RAYCAST_FLAG_NONE 
TRI_RAYCAST_FLAG_HIT_EDGE 
TRI_RAYCAST_FLAG_START_IN_TRI 

Definition at line 91 of file tri.h.

Function Documentation

◆ Cast_Semi_Infinite_Axis_Aligned_Ray_To_Triangle()

bool Cast_Semi_Infinite_Axis_Aligned_Ray_To_Triangle ( const Vector3 & tri_point0,
const Vector3 & tri_point1,
const Vector3 & tri_point2,
const Vector4 & tri_plane,
const Vector3 & ray_start,
int axis_r,
int axis_1,
int axis_2,
int direction,
unsigned char & flags )
inline

Definition at line 219 of file tri.h.

◆ Point_In_Triangle_2D()

bool Point_In_Triangle_2D ( const Vector3 & tri_point0,
const Vector3 & tri_point1,
const Vector3 & tri_point2,
const Vector3 & test_point,
int axis_1,
int axis_2,
unsigned char & flags )
inline

Definition at line 107 of file tri.h.