TPlane3

Windows
MacOS
Linux

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

Public variable

RealType

 

Constant

Public variable

FVector3< RealT...

 

Normal

Constructors

Name Description

Public function

TPlane3()

Public function

TPlane3

(
    FVector3< RealType > Normal,
    double Constant
)

Public function

TPlane3

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

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

Public function

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

Public function

int

 

ClipSegment

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

Clip line segment defined by two points against plane.

Public function Const

double

 

DistanceTo

(
    const FVector3< RealType >& P
)

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

Public function Const

bool

 

FindLineIntersection

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

Compute intersection of Line with Plane

Public function Const

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.
Take our survey
Dismiss