Table of Contents

Method AngleToVector2

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

AngleToVector2(float)

Converts the specified angle into a direction/heading vector.

public static Vector2 AngleToVector2(float angle)

Parameters

angle float

The angle to convert.

Returns

Vector2

A normalised direction vector for the specified angle.