TRay3

3D Ray stored as Origin point and normalized Direction vector

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "RayTypes.h"

Syntax

template<typename RealType>
class TRay3

Remarks

3D Ray stored as Origin point and normalized Direction vector

Variables

Name Description

Public variable

FVector3< RealT...

 

Direction

Direction vector, always normalized

Public variable

FVector3< RealT...

 

Origin

Origin point

Constructors

Name Description

Public function

TRay3()

Construct ray at origin pointed down Z axis

Public function

TRay3

(
    const FRay& RayIn
)

Public function

TRay3

(
    const FVector3< RealType >& Origin,
    const FVector3< RealType >& Direct...,
    bool bIsNormalized
)

Construct ray from origin and direction

Functions

Name Description

Public function Const

RealType

 

Distance

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

Public function Const

RealType

 

DistanceSquared

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

Public function Const

FVector3< Re...

 

NearestPoint

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

Public function Const

FVector3< Re...

 

PointAt

(
    RealType Distance
)

Public function Const

RealType

 

Project

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

Operators

Name Description

Public function Const

 

operator FRay()

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