Rename Vector2 Perpendicular to Orthogonal in C#
This commit is contained in:
parent
3b3a55ca04
commit
aa65c91618
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user