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