Table of Contents

Method Rotate

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Rotate(Vector2, float)

Rotates a vector by a given angle.

public static Vector2 Rotate(this Vector2 vector, float angleInDeg)

Parameters

vector Vector2

vector to rotate

angleInDeg float

angle in degrees.

Returns

Vector2

Rotated vector.