Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
Inheritance Hierarchy
- TVector
- TPlane
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/MathFwd.h |
| Include | #include "Math/MathFwd.h" |
Syntax
template<typename T>
struct TPlane : public UE::Math::TVector< T >
Variables
| Type | Name | Description | |
|---|---|---|---|
| T | W | The w-component. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TPlane () |
Default constructor (no initialization).TPlane inline functions | ||
| Constructor. | |||
TPlane
(
EForceInit |
Constructor | ||
| Conversion to other type. | |||
| Constructor. | |||
| Constructor. | |||
| Constructor. | |||
TPlane
(
T InX, |
Constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| bool | Checks whether two planes are equal within specified tolerance. | ||
| TPlane< T > | Flip () |
Get a flipped version of the plane. | |
| const TVector< T > & | GetNormal () |
Get the normal of this plane. | |
| TVector< T > | GetOrigin () |
Get the origin of this plane. | |
| bool | IsValid () |
Checks if this plane is valid (ie: if it has a non-zero normal). | |
| bool | NetSerialize
(
FArchive& Ar, |
Serializes the vector compressed for e.g. network transmission. | |
| bool | Normalize
(
T Tolerance |
Normalize this plane in-place if it is larger than a given tolerance. Leaves it unchanged if not. | |
| T | Calculates distance between plane and a point. | ||
| bool | |||
| bool | SerializeFromMismatchedTag
(
FName StructTag, |
||
| TPlane< T > | TransformBy
(
const TMatrix< T >& M |
Get the result of transforming the plane by a Matrix. | |
| TPlane< T > | TransformByUsingAdjointT
(
const TMatrix< T >& M, |
You can optionally pass in the matrices transpose-adjoint, which save it recalculating it. | |
| TPlane< T > | TranslateBy
(
const TVector< T >& V |
Get the result of translating the plane by the given offset |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TPlane< T > | Gets result of subtracting a plane from this. | ||
| bool | operator!=
(
const TPlane< T >& V |
Check if two planes are different. | |
| TPlane< T > | operator*
(
T Scale |
Gets result of scaling a plane. | |
| TPlane< T > | Gets result of multiplying a plane with this. | ||
| TPlane< T > | operator*=
(
const TPlane< T >& V |
Multiply another plane with this. | |
| TPlane< T > | operator*=
(
T Scale |
Scale this plane. | |
| TPlane< T > | operator/
(
T Scale |
Gets result of dividing a plane. | |
| TPlane< T > | operator/=
(
T V |
Divide this plane. | |
| T | Calculates dot product of two planes. | ||
| TPlane< T > | Gets result of adding a plane to this. | ||
| TPlane< T > | operator+=
(
const TPlane< T >& V |
Add another plane to this. | |
| TPlane< T > | operator-=
(
const TPlane< T >& V |
Subtract another plane from this. | |
| bool | operator==
(
const TPlane< T >& V |
Check if two planes are identical. |
Typedefs
| Name | Description |
|---|---|
| FReal |