#include <TPlane.h>
|
constexpr | TPlane ()=default |
|
constexpr | TPlane (const TVector4 &a_PlaneData) |
|
constexpr | TPlane (const TVector3 &a_Normal, TFLOAT a_fDistance) |
|
constexpr | TPlane (const TVector3 &a_Normal, const TVector3 &a_Point) |
|
constexpr | TPlane (TFLOAT a_fNormalX, TFLOAT a_fNormalY, TFLOAT a_fNormalZ, TFLOAT a_fDistance) |
|
constexpr | TPlane (const TPlane &a_Other) |
|
constexpr void | Set (const TVector4 &a_PlaneData) |
|
constexpr void | Set (const TVector3 &a_Normal, TFLOAT a_fDistance) |
|
constexpr void | Set (const TVector3 &a_Normal, const TVector3 &a_Point) |
|
constexpr void | Set (TFLOAT a_fNormalX, TFLOAT a_fNormalY, TFLOAT a_fNormalZ, TFLOAT a_fDistance) |
|
constexpr void | Set (const TPlane &a_Other) |
|
TFORCEINLINE constexpr TFLOAT | GetD () const |
|
TFORCEINLINE constexpr void | SetD (TFLOAT a_fDistance) |
|
TFORCEINLINE constexpr const TVector3 & | GetNormal () const |
|
TFORCEINLINE constexpr void | SetNormal (const TVector3 &a_rNormal) |
|
TFORCEINLINE constexpr void | SetNormal (TFLOAT a_fNormalX, TFLOAT a_fNormalY, TFLOAT a_fNormalZ) |
|
TFORCEINLINE void | GetPoint (TVector3 &a_rPoint) |
|
TFORCEINLINE void | SetPoint (const TVector3 &a_rPoint) |
|
TFORCEINLINE void | Negate (const TPlane &a_rPlane) |
|
TFORCEINLINE void | Negate () |
|
constexpr TPlane & | operator= (const TPlane &a_rPlane) |
|
TFORCEINLINE constexpr TVector3 & | AsNormal () |
|
TFORCEINLINE constexpr const TVector3 & | AsNormal () const |
|
TFORCEINLINE TVector4 & | AsVector4 () |
|
TFORCEINLINE const TVector4 & | AsVector4 () const |
|
Definition at line 6 of file TPlane.h.
◆ PlaneComparison
Enumerator |
---|
PlaneComparison_InFront | |
PlaneComparison_Intersects | |
PlaneComparison_InBack | |
Definition at line 9 of file TPlane.h.
10 {
14 };
@ PlaneComparison_Intersects
@ PlaneComparison_InFront
◆ TPlane() [1/6]
◆ TPlane() [2/6]
TPlane::TPlane |
( |
const TVector4 & | a_PlaneData | ) |
|
|
inlineconstexpr |
Definition at line 19 of file TPlane.h.
20 : m_Normal( a_PlaneData.
AsVector3() ), m_fDistance( a_PlaneData.
w )
21 {}
◆ TPlane() [3/6]
Definition at line 23 of file TPlane.h.
24 : m_Normal( a_Normal ), m_fDistance( a_fDistance )
25 {}
◆ TPlane() [4/6]
Definition at line 27 of file TPlane.h.
29 {}
static constexpr TFLOAT DotProduct(const TVector3 &vec1, const TVector3 &vec2)
◆ TPlane() [5/6]
Definition at line 31 of file TPlane.h.
32 : m_Normal( a_fNormalX, a_fNormalY, a_fNormalZ ), m_fDistance( a_fDistance )
33 {}
◆ TPlane() [6/6]
TPlane::TPlane |
( |
const TPlane & | a_Other | ) |
|
|
inlineconstexpr |
Definition at line 35 of file TPlane.h.
36 : m_Normal( a_Other.m_Normal ), m_fDistance( a_Other.m_fDistance )
37 {}
◆ AsNormal() [1/2]
◆ AsNormal() [2/2]
◆ AsVector4() [1/2]
Definition at line 124 of file TPlane.h.
#define TREINTERPRETCAST(TYPE, VALUE)
◆ AsVector4() [2/2]
◆ GetD()
Definition at line 69 of file TPlane.h.
70 {
71 return m_fDistance;
72 }
◆ GetNormal()
Definition at line 79 of file TPlane.h.
80 {
81 return m_Normal;
82 }
◆ GetPoint()
Definition at line 94 of file TPlane.h.
95 {
96 a_rPoint.
Multiply( m_Normal, m_fDistance );
97 }
constexpr void Multiply(const TVector3 &vec)
◆ Negate() [1/2]
Definition at line 109 of file TPlane.h.
110 {
112 }
TFORCEINLINE TVector4 & AsVector4()
constexpr void Negate4(const TVector4 &vec)
◆ Negate() [2/2]
◆ operator=()
Definition at line 114 of file TPlane.h.
115 {
116 m_Normal = a_rPlane.m_Normal;
117 m_fDistance = a_rPlane.m_fDistance;
118 return *this;
119 }
◆ Set() [1/5]
void TPlane::Set |
( |
const TPlane & | a_Other | ) |
|
|
inlineconstexpr |
Definition at line 63 of file TPlane.h.
64 {
65 m_Normal = a_Other.m_Normal;
66 m_fDistance = a_Other.m_fDistance;
67 }
◆ Set() [2/5]
Definition at line 51 of file TPlane.h.
52 {
53 m_Normal = a_Normal;
55 }
◆ Set() [3/5]
Definition at line 45 of file TPlane.h.
46 {
47 m_Normal = a_Normal;
48 m_fDistance = a_fDistance;
49 }
◆ Set() [4/5]
void TPlane::Set |
( |
const TVector4 & | a_PlaneData | ) |
|
|
inlineconstexpr |
Definition at line 39 of file TPlane.h.
40 {
42 m_fDistance = a_PlaneData.
w;
43 }
◆ Set() [5/5]
Definition at line 57 of file TPlane.h.
58 {
59 m_Normal.Set( a_fNormalX, a_fNormalY, a_fNormalZ );
60 m_fDistance = a_fDistance;
61 }
◆ SetD()
Definition at line 74 of file TPlane.h.
75 {
76 m_fDistance = a_fDistance;
77 }
◆ SetNormal() [1/2]
Definition at line 84 of file TPlane.h.
85 {
86 m_Normal = a_rNormal;
87 }
◆ SetNormal() [2/2]
Definition at line 89 of file TPlane.h.
90 {
91 m_Normal.Set( a_fNormalX, a_fNormalY, a_fNormalZ );
92 }
◆ SetPoint()
The documentation for this class was generated from the following file:
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Math/TPlane.h