Skip to content

Commit

Permalink
fix: rename Normalize method
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonciu Liang committed Apr 19, 2019
1 parent e9f9e56 commit 8e87752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/MathExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void Set(ref this Vector3 vector3, float x, float y, float z)

/// Convert this vector into a unit vector. Returns the length.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Normalize2(ref this Vector2 vector2)
public static float Normalize(ref this Vector2 vector2)
{
var length = vector2.Length();
if (length < Settings.Epsilon)
Expand Down

0 comments on commit 8e87752

Please sign in to comment.