TIntrLine2Triangle2

Compute intersection between 2D Line and 2D Triangle

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Intersection/IntrLine2Triangle2.h

Include

#include "Intersection/IntrLine2Triangle2.h"

Syntax

template<typename Real>
class TIntrLine2Triangle2

Remarks

Compute intersection between 2D Line and 2D Triangle

Variables

Name Description

Protected variable

TLine2< Real >

 

Line

Input.

Public variable

double

 

Param0

Public variable

double

 

Param1

Public variable

FVector2< Real ...

 

Point0

Public variable

FVector2< Real ...

 

Point1

Public variable

int

 

Quantity

Output.

Public variable

EIntersectionRe...

 

Result

Protected variable

TTriangle2< Rea...

 

Triangle

Public variable

EIntersectionTy...

 

Type

Constructors

Name Description

Public function

TIntrLine2Triangle2()

Public function

TIntrLine2Triangle2

(
    TLine2< Real > l,
    TTriangle2< Real > t
)

Functions

Name Description

Public function

TIntrLine2Tr...

 

Compute()

Public function

bool

 

Find()

Public function Static

bool

 

GetInterval

(
    const FVector2< Real >& Origin,
    const FVector2< Real >& Direction,
    const TTriangle2< Real >& Tri,
    const FVector3< Real >& Dist,
    const FVector3i& Sign,
    FVector2< Real >& param
)

Public function Const

TLine2< Real...

 

GetLine()

Public function Const

TTriangle2< ...

 

GetTriangle()

Public function

bool

 

IsSimpleIntersection()

Public function

void

 

SetLine

(
    const TLine2< Real >& LineIn
)

Public function

void

 

SetTriangle

(
    const TTriangle2< Real >& Triangle...
)

Public function Static

void

 

TriangleLineRelations

(
    const FVector2< Real >& Origin,
    const FVector2< Real >& Direction,
    const TTriangle2< Real >& Tri,
    FVector3< Real >& Dist,
    FVector3i& Sign,
    int& Positive,
    int& Negative,
    int& Zero,
    Real Tolerance
)

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