Rename Vector2 Perpendicular to Orthogonal in C#

This commit is contained in:
Aaron Franke 2021-05-21 20:55:15 -04:00
parent 3b3a55ca04
commit aa65c91618
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
2 changed files with 4 additions and 4 deletions

View File

@ -519,7 +519,7 @@ namespace Godot
/// compared to the original, with the same length. /// compared to the original, with the same length.
/// </summary> /// </summary>
/// <returns>The perpendicular vector.</returns> /// <returns>The perpendicular vector.</returns>
public Vector2 Perpendicular() public Vector2 Orthogonal()
{ {
return new Vector2(y, -x); return new Vector2(y, -x);
} }

View File

@ -248,13 +248,13 @@ namespace Godot
} }
/// <summary> /// <summary>
/// Returns a vector rotated 90 degrees counter-clockwise /// Returns a perpendicular vector rotated 90 degrees counter-clockwise
/// compared to the original, with the same length. /// compared to the original, with the same length.
/// </summary> /// </summary>
/// <returns>The perpendicular vector.</returns> /// <returns>The perpendicular vector.</returns>
public Vector2 Perpendicular() public Vector2i Orthogonal()
{ {
return new Vector2(y, -x); return new Vector2i(y, -x);
} }
// Constants // Constants