From 0bfc52b02b14b18e77a9598aeb7d16ff157bb0ae Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Fri, 21 Jul 2023 08:31:48 -0500 Subject: [PATCH] Fixes to existing C# documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • changes instances of `see paramref` to `paramref name` • specifies `real_t` for ambiguous methods --- modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs | 4 ++-- modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs | 4 ++-- modules/mono/glue/GodotSharp/GodotSharp/Core/Plane.cs | 2 +- .../mono/glue/GodotSharp/GodotSharp/Core/Projection.cs | 2 +- .../mono/glue/GodotSharp/GodotSharp/Core/Quaternion.cs | 4 ++-- modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs | 2 +- .../mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs | 4 ++-- .../mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs | 4 ++-- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs | 8 ++++---- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs | 2 +- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs | 8 ++++---- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs | 2 +- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4.cs | 8 ++++---- modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs | 2 +- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs index af83cc24bfd5..d25944dcebb3 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs @@ -564,7 +564,7 @@ public readonly bool IntersectsSegment(Vector3 from, Vector3 to) /// /// Returns if this is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -683,7 +683,7 @@ public Aabb(real_t x, real_t y, real_t z, real_t width, real_t height, real_t de /// /// Returns if the AABB is exactly equal - /// to the given object (). + /// to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs index 74425c983559..d53dd9a9af76 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Basis.cs @@ -596,7 +596,7 @@ public readonly Basis Inverse() /// /// Returns if this basis is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -1083,7 +1083,7 @@ public static Basis FromScale(Vector3 scale) /// /// Returns if the is - /// exactly equal to the given object (). + /// exactly equal to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Plane.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Plane.cs index 55b7a83fc25f..3c7455a76c50 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Plane.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Plane.cs @@ -204,7 +204,7 @@ public readonly bool HasPoint(Vector3 point, real_t tolerance = Mathf.Epsilon) /// /// Returns if this plane is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs index 84fc73b87a26..998a2786a76f 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Projection.cs @@ -976,7 +976,7 @@ public static explicit operator Transform3D(Projection proj) /// /// Returns if the projection is exactly equal - /// to the given object (). + /// to the given object (). /// /// The object to compare with. /// Whether or not the vector and the object are equal. diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Quaternion.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Quaternion.cs index 9c2a6fc654c5..2e282447bd5c 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Quaternion.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Quaternion.cs @@ -103,7 +103,7 @@ readonly get /// /// Note: This method has an abnormally high amount /// of floating-point error, so methods such as - /// will not work reliably. + /// will not work reliably. /// /// The other quaternion. /// The angle between the quaternions. @@ -320,7 +320,7 @@ public readonly Quaternion Inverse() /// /// Returns if this quaternion is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs index 69444f803574..458802f95d2f 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Rect2.cs @@ -102,7 +102,7 @@ public readonly Rect2 Intersection(Rect2 b) /// /// Returns if this is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public bool IsFinite() diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs index d7392dbda88b..618c892681cd 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform2D.cs @@ -232,7 +232,7 @@ public readonly Transform2D Inverse() /// /// Returns if this transform is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -586,7 +586,7 @@ public Transform2D(real_t rotation, Vector2 scale, real_t skew, Vector2 origin) /// /// Returns if the transform is exactly equal - /// to the given object (). + /// to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs index ae2c025137af..b16e6e592ecd 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs @@ -156,7 +156,7 @@ public readonly Transform3D Inverse() /// /// Returns if this transform is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -613,7 +613,7 @@ public Transform3D(Projection projection) /// /// Returns if the transform is exactly equal - /// to the given object (). + /// to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs index 0bf8f25f061f..642ef231f3f4 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2.cs @@ -164,7 +164,7 @@ public readonly Vector2 Bounce(Vector2 normal) /// /// Returns a new vector with all components rounded up (towards positive infinity). /// - /// A vector with called on each component. + /// A vector with called on each component. public readonly Vector2 Ceil() { return new Vector2(Mathf.Ceil(X), Mathf.Ceil(Y)); @@ -318,7 +318,7 @@ public readonly real_t Dot(Vector2 with) /// /// Returns a new vector with all components rounded down (towards negative infinity). /// - /// A vector with called on each component. + /// A vector with called on each component. public readonly Vector2 Floor() { return new Vector2(Mathf.Floor(X), Mathf.Floor(Y)); @@ -335,7 +335,7 @@ public readonly Vector2 Inverse() /// /// Returns if this vector is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -948,7 +948,7 @@ public static Vector2 FromAngle(real_t angle) /// /// Returns if the vector is exactly equal - /// to the given object (). + /// to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs index 0dac8205b6c3..231e791904fb 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs @@ -517,7 +517,7 @@ public static explicit operator Vector2I(Vector2 value) /// /// Returns if the vector is equal - /// to the given object (). + /// to the given object (). /// /// The object to compare with. /// Whether or not the vector and the object are equal. diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs index d929b5c6abd2..7d548f1d104a 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs @@ -150,7 +150,7 @@ public readonly Vector3 Bounce(Vector3 normal) /// /// Returns a new vector with all components rounded up (towards positive infinity). /// - /// A vector with called on each component. + /// A vector with called on each component. public readonly Vector3 Ceil() { return new Vector3(Mathf.Ceil(X), Mathf.Ceil(Y), Mathf.Ceil(Z)); @@ -315,7 +315,7 @@ public readonly real_t Dot(Vector3 with) /// /// Returns a new vector with all components rounded down (towards negative infinity). /// - /// A vector with called on each component. + /// A vector with called on each component. public readonly Vector3 Floor() { return new Vector3(Mathf.Floor(X), Mathf.Floor(Y), Mathf.Floor(Z)); @@ -332,7 +332,7 @@ public readonly Vector3 Inverse() /// /// Returns if this vector is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -1050,7 +1050,7 @@ public Vector3(real_t x, real_t y, real_t z) /// /// Returns if the vector is exactly equal - /// to the given object (). + /// to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs index a2927533f808..8543052f561e 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs @@ -572,7 +572,7 @@ public static explicit operator Vector3I(Vector3 value) /// /// Returns if the vector is equal - /// to the given object (). + /// to the given object (). /// /// The object to compare with. /// Whether or not the vector and the object are equal. diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4.cs index 1fd39632b0a7..10a0b1416248 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4.cs @@ -147,7 +147,7 @@ public readonly Vector4 Abs() /// /// Returns a new vector with all components rounded up (towards positive infinity). /// - /// A vector with called on each component. + /// A vector with called on each component. public readonly Vector4 Ceil() { return new Vector4(Mathf.Ceil(X), Mathf.Ceil(Y), Mathf.Ceil(Z), Mathf.Ceil(W)); @@ -264,7 +264,7 @@ public readonly real_t Dot(Vector4 with) /// /// Returns a new vector with all components rounded down (towards negative infinity). /// - /// A vector with called on each component. + /// A vector with called on each component. public readonly Vector4 Floor() { return new Vector4(Mathf.Floor(X), Mathf.Floor(Y), Mathf.Floor(Z), Mathf.Floor(W)); @@ -281,7 +281,7 @@ public readonly Vector4 Inverse() /// /// Returns if this vector is finite, by calling - /// on each component. + /// on each component. /// /// Whether this vector is finite or not. public readonly bool IsFinite() @@ -832,7 +832,7 @@ public Vector4(real_t x, real_t y, real_t z, real_t w) /// /// Returns if the vector is exactly equal - /// to the given object (). + /// to the given object (). /// Note: Due to floating-point precision errors, consider using /// instead, which is more reliable. /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs index bb552b939d18..f81390317739 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs @@ -593,7 +593,7 @@ public static explicit operator Vector4I(Vector4 value) /// /// Returns if the vector is equal - /// to the given object (). + /// to the given object (). /// /// The object to compare with. /// Whether or not the vector and the object are equal.