TFrame3::RayPlaneIntersection

Compute intersection of ray with plane defined by frame origin and axis as normal

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "FrameTypes.h"

Syntax

bool RayPlaneIntersection
(
    const FVector3< RealType > & RayOrigin,
    const FVector3< RealType > & RayDirection,
    int PlaneNormalAxis,
    FVector3< RealType > & HitPointOut
) const

Remarks

Compute intersection of ray with plane defined by frame origin and axis as normal

Returns

true if ray intersects plane and HitPointOut is valid

Parameters

Parameter

Description

RayOrigin

origin of ray

RayDirection

direction of ray

PlaneNormalAxis

which axis of frame to use as plane normal

HitPointOut

intersection point, or FVector3::Max() if ray does not hit plane or is parallel to plane

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