# TPlane3

References

 Module GeometricObjects Header /Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/PlaneTypes.h Include #include "PlaneTypes.h"

Syntax

template<typename RealType>
struct TPlane3

Variables

Name Description

RealType

Constant

FVector3< RealT...

Normal

Constructors

Name Description

TPlane3()

TPlane3

(
FVector3< RealType > Normal,
double Constant
)

TPlane3

(
const FVector3< RealType >& Normal,
const FVector3< RealType >& Point
)

N is specified, c = Dot(N,P) where P is a point on the plane.

TPlane3

(
const FVector3< RealType >& P0,
const FVector3< RealType >& P1,
const FVector3< RealType >& P2
)

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

Name Description

int

ClipSegment

(
FVector3< RealType >& Point0,
FVector3< RealType >& Point1
)

Clip line segment defined by two points against plane.

double

DistanceTo

(
const FVector3< RealType >& P
)

Compute d = Dot(N,P)-c where N is the plane normal and c is the plane constant.

bool

FindLineIntersection

(
const FVector3< RealType >& LineOr...,
const FVector3< RealType >& LineDi...,
FVector3< RealType >& Intersection...
)

Compute intersection of Line with Plane

int

WhichSide

(
const FVector3< RealType >& P
)

The "positive side" of the plane is the half space to which the plane normal points.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.