Click or drag to resize

TwoDRotate Method

Rotates a point around (0,0) by an angle.

Namespace:  TouchScript.Utils.Geom
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static Vector2 Rotate(
	Vector2 point,
	float angle
)

Parameters

point
Type: Vector2
Point to rotate.
angle
Type: SystemSingle
Angle in degrees to rotate by.

Return Value

Type: Vector2
Transformed point.
See Also