Table of Contents

Method RotateAround

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

RotateAround(Vector2, float, Vector2)

Rotates a vector by a given angle around a given point.

public static Vector2 RotateAround(this Vector2 vector, float angleInDeg, Vector2 axisPosition)

Parameters

vector Vector2
angleInDeg float
axisPosition Vector2

Returns

Vector2