TTriangle2

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "TriangleTypes.h"

Syntax

template<typename RealType>
struct TTriangle2

Variables

Name Description

Public variable

FVector2< RealT...

 

V

Constructors

Name Description

Public function

TTriangle2()

Public function

TTriangle2

(
    const FVector2< RealType > VIn
)

Public function

TTriangle2

(
    const FVector2< RealType >& V0,
    const FVector2< RealType >& V1,
    const FVector2< RealType >& V2
)

Functions

Name Description

Public function Const

FVector2< Re...

 

BarycentricPoint

(
    const FVector3< RealType >& BaryCo...
)

Public function Const

FVector2< Re...

 

BarycentricPoint

(
    RealType Bary0,
    RealType Bary1,
    RealType Bary2
)

Public function Const

FVector3< Re...

 

GetBarycentricCoords

(
    const FVector2< RealType >& Point
)

Public function Const

bool

 

IsInside

(
    const FVector2< RealType >& QueryP...
)

Public function Static

bool

 

IsInside

(
    const FVector2< RealType >& A,
    const FVector2< RealType >& B,
    const FVector2< RealType >& C,
    const FVector2< RealType >& QueryP...
)

Public function Const

bool

 

IsInsideOrOn

(
    const FVector2< RealType >& QueryP...,
    RealType Epsilon
)

Public function Static

bool

 

IsInsideOrOn

(
    const FVector2< RealType >& A,
    const FVector2< RealType >& B,
    const FVector2< RealType >& C,
    const FVector2< RealType >& QueryP...
)

Public function Const

int

 

IsInsideOrOn_Oriented

(
    const FVector2< RealType >& QueryP...
)

More robust (because it doesn't multiply orientation test results) inside-triangle test for oriented triangles only (the code early-outs at the first 'outside' edge, which only works if the triangle is oriented as expected)

Public function Static

int

 

IsInsideOrOn_Oriented

(
    const FVector2< RealType >& A,
    const FVector2< RealType >& B,
    const FVector2< RealType >& C,
    const FVector2< RealType >& QueryP...
)

More robust (because it doesn't multiply orientation test results) inside-triangle test for oriented triangles only (the code early-outs at the first 'outside' edge, which only works if the triangle is oriented as expected)

Public function Const

RealType

 

SignedArea()

Public function Static

RealType

 

SignedArea

(
    const FVector2< RealType >& A,
    const FVector2< RealType >& B,
    const FVector2< RealType >& C
)

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