Merge pull request #48952 from aaronfranke/cs-vec2-orthogonal

Rename Vector2 Perpendicular to Orthogonal in C#
This commit is contained in:
Rémi Verschelde
2021-05-22 13:40:23 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
@@ -519,7 +519,7 @@ namespace Godot
/// compared to the original, with the same length.
/// </summary>
/// <returns>The perpendicular vector.</returns>
public Vector2 Perpendicular()
public Vector2 Orthogonal()
{
return new Vector2(y, -x);
}
@@ -248,13 +248,13 @@ namespace Godot
}
/// <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.
/// </summary>
/// <returns>The perpendicular vector.</returns>
public Vector2 Perpendicular()
public Vector2i Orthogonal()
{
return new Vector2(y, -x);
return new Vector2i(y, -x);
}
// Constants