Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/PlaneTypes.h |
| Include | #include "PlaneTypes.h" |
Syntax
template<typename RealType>
struct TPlane3
Variables
| Type | Name | Description | |
|---|---|---|---|
| RealType | Constant | ||
| TVector< RealType > | Normal |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TPlane3 () |
|||
TPlane3
(
const FPlane& Plane |
|||
TPlane3
(
const UE::Math::TVector< RealType >& Normal, |
|||
TPlane3
(
const UE::Math::TVector< RealType >& Normal, |
N is specified, c = Dot(N,P) where P is a point on the plane. | ||
TPlane3
(
const UE::Math::TVector< RealType >& P0, |
N = Cross(P1-P0,P2-P0)/Length(Cross(P1-P0,P2-P0)), c = Dot(N,P0) where P0, P1, P2 are points on the plane. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EClipSegmentType | ClipSegment
(
UE::Math::TVector< RealType >& Point0, |
Clip line segment defined by two points against plane. | |
| double | DistanceTo
(
const UE::Math::TVector< RealType >& P |
Compute d = Dot(N,P)-c where N is the plane normal and c is the plane constant. | |
| bool | FindLineIntersection
(
const UE::Math::TVector< RealType >& LineOrigin, |
Compute intersection of Line with Plane | |
| void | InverseTransform
(
const TTransform< RealType >& Tr |
Transform the plane by the inverse of the given transform | |
| void | Transform
(
const TTransform< RealType >& Tr |
Transform the plane by the given transform | |
| int | WhichSide
(
const UE::Math::TVector< RealType >& P |
The "positive side" of the plane is the half space to which the plane normal points. |
Operators
| Type | Name | Description | |
|---|---|---|---|
Enums
| Type | Name | Description | |
|---|---|---|---|
| EClipSegmentType |