Click or drag to resize

Vector2Rotated Method

Rotates this vector by `phi` radians.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 Rotated(
	float phi
)

Parameters

phi
Type: SystemSingle
The angle to rotate by, in radians.

Return Value

Type: Vector2
The rotated vector.
See Also