FVector::CosineAngle2D

Returns the cosine of the angle between this vector and another projected onto the XY plane (no Z).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Include

#include "Math/Vector.h"

Syntax

float CosineAngle2D
(
    FVector B
) const

Remarks

Returns the cosine of the angle between this vector and another projected onto the XY plane (no Z).

Returns

The cosine.

Parameters

Parameter

Description

B

the other vector to find the 2D cosine of the angle with.

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