Merge pull request #48952 from aaronfranke/cs-vec2-orthogonal
Rename Vector2 Perpendicular to Orthogonal in C#
This commit is contained in:
commit
9a508f89b2
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user