TLine2

[TLine2](API\Plugins\GeometricObjects\TLine2) is a two-dimensional infinite line.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/LineTypes.h

Include

#include "LineTypes.h"

Syntax

template<typename T>
struct TLine2

Remarks

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

Variables

Name Description

Public variable

FVector2< T >

 

Direction

Direction of Line, Normalized

Public variable

FVector2< T >

 

Origin

Origin / Center Point of Line

Constructors

Name Description

Public function

TLine2()

Construct default line along X axis

Public function

TLine2

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

Construct line with given Origin and Direction

Functions

Name Description

Public function Const

T

 

DistanceSquared

(
    const FVector2< T >& QueryPoint
)

Public function Static

TLine2< T >

 

FromPoints

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

Public function Const

bool

 

IntersectionPoint

(
    const TLine2< T >& OtherLine,
    FVector2< T >& IntersectionPointOu...,
    T ParallelDotTolerance
)

Calculate intersection point between this line and another one

Public function Const

FVector2< T ...

 

NearestPoint

(
    const FVector2< T >& QueryPoint
)

Public function Const

FVector2< T ...

 

PointAt

(
    T LineParameter
)

Public function Const

T

 

Project

(
    const FVector2< T >& QueryPoint
)

Public function Const

int

 

WhichSide

(
    const FVector2< T >& QueryPoint,
    T OnLineTolerance
)

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