UKismetMathLibrary::Vector_CosineAngle2D

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl

Syntax

static float Vector_CosineAngle2D
(
    FVector A,
    FVector B
)

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