From 24f57886d087d78eb8dcf7be28d790cddadf2c99 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 28 Nov 2019 03:48:51 -0500 Subject: Expose max_axis_index and max_axis_index for Vector2(i) Some cleanup with Vector3(i)'s methods so that it is consistent with Vector2, for example it returns enums internally (GDScript still gets ints). --- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs | 14 +++++++------- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2i.cs | 14 +++++++------- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs | 14 +++++++------- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3i.cs | 14 +++++++------- 4 files changed, 28 insertions(+), 28 deletions(-) (limited to 'modules/mono') diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs index 30ecd22db7..1f5282e88f 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs @@ -17,7 +17,7 @@ namespace Godot { /// /// Enumerated index values for the axes. - /// Returned by and . + /// Returned by and . /// public enum Axis { @@ -365,21 +365,21 @@ namespace Godot } /// - /// Returns the axis of the vector's largest value. See . + /// Returns the axis of the vector's highest value. See . /// If both components are equal, this method returns . /// - /// The index of the largest axis. - public Axis MaxAxis() + /// The index of the highest axis. + public Axis MaxAxisIndex() { return x < y ? Axis.Y : Axis.X; } /// - /// Returns the axis of the vector's smallest value. See . + /// Returns the axis of the vector's lowest value. See . /// If both components are equal, this method returns . /// - /// The index of the smallest axis. - public Axis MinAxis() + /// The index of the lowest axis. + public Axis MinAxisIndex() { return x < y ? Axis.X : Axis.Y; } diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2i.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2i.cs index 3bbc2ae2ba..9b51de5c8c 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2i.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2i.cs @@ -17,7 +17,7 @@ namespace Godot { /// /// Enumerated index values for the axes. - /// Returned by and . + /// Returned by and . /// public enum Axis { @@ -218,21 +218,21 @@ namespace Godot } /// - /// Returns the axis of the vector's largest value. See . + /// Returns the axis of the vector's highest value. See . /// If both components are equal, this method returns . /// - /// The index of the largest axis. - public Axis MaxAxis() + /// The index of the highest axis. + public Axis MaxAxisIndex() { return x < y ? Axis.Y : Axis.X; } /// - /// Returns the axis of the vector's smallest value. See . + /// Returns the axis of the vector's lowest value. See . /// If both components are equal, this method returns . /// - /// The index of the smallest axis. - public Axis MinAxis() + /// The index of the lowest axis. + public Axis MinAxisIndex() { return x < y ? Axis.X : Axis.Y; } diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs index 15acf88f62..433a5d9dc9 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs @@ -17,7 +17,7 @@ namespace Godot { /// /// Enumerated index values for the axes. - /// Returned by and . + /// Returned by and . /// public enum Axis { @@ -364,21 +364,21 @@ namespace Godot } /// - /// Returns the axis of the vector's largest value. See . + /// Returns the axis of the vector's highest value. See . /// If all components are equal, this method returns . /// - /// The index of the largest axis. - public Axis MaxAxis() + /// The index of the highest axis. + public Axis MaxAxisIndex() { return x < y ? (y < z ? Axis.Z : Axis.Y) : (x < z ? Axis.Z : Axis.X); } /// - /// Returns the axis of the vector's smallest value. See . + /// Returns the axis of the vector's lowest value. See . /// If all components are equal, this method returns . /// - /// The index of the smallest axis. - public Axis MinAxis() + /// The index of the lowest axis. + public Axis MinAxisIndex() { return x < y ? (x < z ? Axis.X : Axis.Z) : (y < z ? Axis.Y : Axis.Z); } diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3i.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3i.cs index 562f653fa8..eb06d2b87e 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3i.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3i.cs @@ -17,7 +17,7 @@ namespace Godot { /// /// Enumerated index values for the axes. - /// Returned by and . + /// Returned by and . /// public enum Axis { @@ -186,21 +186,21 @@ namespace Godot } /// - /// Returns the axis of the vector's largest value. See . + /// Returns the axis of the vector's highest value. See . /// If all components are equal, this method returns . /// - /// The index of the largest axis. - public Axis MaxAxis() + /// The index of the highest axis. + public Axis MaxAxisIndex() { return x < y ? (y < z ? Axis.Z : Axis.Y) : (x < z ? Axis.Z : Axis.X); } /// - /// Returns the axis of the vector's smallest value. See . + /// Returns the axis of the vector's lowest value. See . /// If all components are equal, this method returns . /// - /// The index of the smallest axis. - public Axis MinAxis() + /// The index of the lowest axis. + public Axis MinAxisIndex() { return x < y ? (x < z ? Axis.X : Axis.Z) : (y < z ? Axis.Y : Axis.Z); } -- cgit v1.2.3