TLine3

[TLine3](API\Runtime\GeometryCore\TLine3) is a three-dimensional infinite line.

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/LineTypes.h

Include

#include "LineTypes.h"

Syntax

template<typename T>
struct TLine3

Remarks

TLine3 is a three-dimensional infinite line. The line is stored in (Center,Direction) form.

Variables

Name Description

Public variable

TVector< T >

 

Direction

Direction of Line, Normalized

Public variable

TVector< T >

 

Origin

Origin / Center Point of Line

Constructors

Name Description

Public function

TLine3()

Construct default line along X axis

Public function

TLine3

(
    const TVector< T >& OriginIn,
    const TVector< T >& DirectionIn
)

Construct line with given Origin and Direction

Functions

Name Description

Public function Const

T

 

DistanceSquared

(
    const TVector< T >& QueryPoint
)

Public function Static

TLine3< T >

 

FromPoints

(
    const TVector< T >& Point0,
    const TVector< T >& Point1
)

Public function Const

TVector< T >

 

NearestPoint

(
    const TVector< T >& QueryPoint
)

Public function Const

TVector< T >

 

PointAt

(
    T LineParameter
)

Public function Const

T

 

Project

(
    const TVector< T >& QueryPoint
)