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
commit 9a508f89b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.
/// </summary>
/// <returns>The perpendicular vector.</returns>
public Vector2 Perpendicular()
public Vector2 Orthogonal()
{
return new Vector2(y, -x);
}

View file

@ -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