void Vector2RotationExamples() { // Create a length 1 Vector2 pointing 40 degrees away from (1.0, 0.0) var vector = UnityHelper.CreateVector2AngleDeg(20f); Debug.Log(vector); // => (0.9, 0.3) // Rotate the vector 70 degrees vector = vector.RotateDeg(70f); Debug.Log(vector); // => (0.0, 1.0) // Output the current vector rotation Debug.Log(vector.GetAngleDeg()); // => 90 }