Table of Contents

Method VectorToAngle

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

VectorToAngle(Vector2)

Converts the specified direction/heading vector to an angle.

public static float VectorToAngle(Vector2 direction)

Parameters

direction Vector2

The direction/heading vector to convert.

Returns

float

The angle, in degrees matching the direction of this vector.

VectorToAngle(Vector3)

Converts the specified direction/heading vector to an angle.

public static float VectorToAngle(Vector3 direction)

Parameters

direction Vector3

The direction/heading vector to convert.

Returns

float

The angle, in degrees matching the direction of this vector.