Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
PlaneClass Class Reference

#include <plane.h>

Public Types

enum  { FRONT = 0 , BACK , ON }
 

Public Member Functions

 PlaneClass (void)
 
 PlaneClass (float nx, float ny, float nz, float dist)
 
 PlaneClass (const Vector3 &normal, float dist)
 
 PlaneClass (const Vector3 &normal, const Vector3 &point)
 
 PlaneClass (const Vector3 &point1, const Vector3 &point2, const Vector3 &point3)
 
void Set (float a, float b, float c, float d)
 
void Set (const Vector3 &normal, float dist)
 
void Set (const Vector3 &normal, const Vector3 &point)
 
void Set (const Vector3 &point1, const Vector3 &point2, const Vector3 &point3)
 
bool Compute_Intersection (const Vector3 &p0, const Vector3 &p1, float *set_t) const
 
bool In_Front (const Vector3 &point) const
 
bool In_Front (const SphereClass &sphere) const
 
bool In_Front_Or_Intersecting (const SphereClass &sphere) const
 
 PlaneClass (void)
 
 PlaneClass (float a, float b, float c, float d)
 
 PlaneClass (const Vector3 &normal, float dist)
 
 PlaneClass (const Vector3 &normal, const Vector3 &point)
 
 PlaneClass (const Vector3 &point1, const Vector3 &point2, const Vector3 &point3)
 
void Set (float a, float b, float c, float d)
 

Static Public Member Functions

static void Intersect_Planes (const PlaneClass &a, const PlaneClass &b, Vector3 *line_dir, Vector3 *line_point)
 

Public Attributes

Vector3 N
 
float D
 

Detailed Description

Definition at line 61 of file plane.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FRONT 
BACK 
ON 

Definition at line 65 of file plane.h.

Constructor & Destructor Documentation

◆ PlaneClass() [1/10]

PlaneClass::PlaneClass ( void )
inline

Definition at line 70 of file plane.h.

◆ PlaneClass() [2/10]

PlaneClass::PlaneClass ( float nx,
float ny,
float nz,
float dist )
inline

Definition at line 97 of file plane.h.

◆ PlaneClass() [3/10]

PlaneClass::PlaneClass ( const Vector3 & normal,
float dist )
inline

Definition at line 102 of file plane.h.

◆ PlaneClass() [4/10]

PlaneClass::PlaneClass ( const Vector3 & normal,
const Vector3 & point )
inline

Definition at line 107 of file plane.h.

◆ PlaneClass() [5/10]

PlaneClass::PlaneClass ( const Vector3 & point1,
const Vector3 & point2,
const Vector3 & point3 )
inline

Definition at line 112 of file plane.h.

◆ PlaneClass() [6/10]

PlaneClass::PlaneClass ( void )
inline

Definition at line 58 of file plane.h.

◆ PlaneClass() [7/10]

PlaneClass::PlaneClass ( float a,
float b,
float c,
float d )
inline

Definition at line 59 of file plane.h.

◆ PlaneClass() [8/10]

PlaneClass::PlaneClass ( const Vector3 & normal,
float dist )
inline

Definition at line 60 of file plane.h.

◆ PlaneClass() [9/10]

PlaneClass::PlaneClass ( const Vector3 & normal,
const Vector3 & point )

◆ PlaneClass() [10/10]

PlaneClass::PlaneClass ( const Vector3 & point1,
const Vector3 & point2,
const Vector3 & point3 )

Member Function Documentation

◆ Compute_Intersection()

bool PlaneClass::Compute_Intersection ( const Vector3 & p0,
const Vector3 & p1,
float * set_t ) const
inline

Definition at line 156 of file plane.h.

◆ In_Front() [1/2]

bool PlaneClass::In_Front ( const SphereClass & sphere) const
inline

Definition at line 190 of file plane.h.

◆ In_Front() [2/2]

bool PlaneClass::In_Front ( const Vector3 & point) const
inline

Definition at line 183 of file plane.h.

◆ In_Front_Or_Intersecting()

bool PlaneClass::In_Front_Or_Intersecting ( const SphereClass & sphere) const
inline

Definition at line 198 of file plane.h.

◆ Intersect_Planes()

void PlaneClass::Intersect_Planes ( const PlaneClass & a,
const PlaneClass & b,
Vector3 * line_dir,
Vector3 * line_point )
inlinestatic

Definition at line 204 of file plane.h.

◆ Set() [1/5]

void PlaneClass::Set ( const Vector3 & normal,
const Vector3 & point )
inline

Definition at line 131 of file plane.h.

◆ Set() [2/5]

void PlaneClass::Set ( const Vector3 & normal,
float dist )
inline

Definition at line 125 of file plane.h.

◆ Set() [3/5]

void PlaneClass::Set ( const Vector3 & point1,
const Vector3 & point2,
const Vector3 & point3 )
inline

Definition at line 138 of file plane.h.

◆ Set() [4/5]

void PlaneClass::Set ( float a,
float b,
float c,
float d )
inline

Definition at line 117 of file plane.h.

◆ Set() [5/5]

void PlaneClass::Set ( float a,
float b,
float c,
float d )
inline

Definition at line 68 of file plane.h.

Member Data Documentation

◆ D

float PlaneClass::D

Definition at line 68 of file plane.h.

◆ N

Vector3 PlaneClass::N

Definition at line 67 of file plane.h.


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