From 455e142d37c993a0c80ff5241a10ae9327e46d43 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 17 Sep 2021 12:22:48 -0300 Subject: Allow comparing equality between builtin types and null --- doc/classes/AABB.xml | 10 ++++++++++ doc/classes/Array.xml | 10 ++++++++++ doc/classes/Basis.xml | 10 ++++++++++ doc/classes/Callable.xml | 10 ++++++++++ doc/classes/Color.xml | 10 ++++++++++ doc/classes/Dictionary.xml | 10 ++++++++++ doc/classes/NodePath.xml | 10 ++++++++++ doc/classes/PackedByteArray.xml | 10 ++++++++++ doc/classes/PackedColorArray.xml | 10 ++++++++++ doc/classes/PackedFloat32Array.xml | 10 ++++++++++ doc/classes/PackedFloat64Array.xml | 10 ++++++++++ doc/classes/PackedInt32Array.xml | 10 ++++++++++ doc/classes/PackedInt64Array.xml | 10 ++++++++++ doc/classes/PackedStringArray.xml | 10 ++++++++++ doc/classes/PackedVector2Array.xml | 10 ++++++++++ doc/classes/PackedVector3Array.xml | 10 ++++++++++ doc/classes/Plane.xml | 10 ++++++++++ doc/classes/Quaternion.xml | 10 ++++++++++ doc/classes/RID.xml | 10 ++++++++++ doc/classes/Rect2.xml | 10 ++++++++++ doc/classes/Rect2i.xml | 10 ++++++++++ doc/classes/Signal.xml | 10 ++++++++++ doc/classes/String.xml | 10 ++++++++++ doc/classes/StringName.xml | 10 ++++++++++ doc/classes/Transform2D.xml | 10 ++++++++++ doc/classes/Transform3D.xml | 10 ++++++++++ doc/classes/Vector2.xml | 10 ++++++++++ doc/classes/Vector2i.xml | 10 ++++++++++ doc/classes/Vector3.xml | 10 ++++++++++ doc/classes/Vector3i.xml | 10 ++++++++++ doc/classes/bool.xml | 10 ++++++++++ doc/classes/float.xml | 10 ++++++++++ doc/classes/int.xml | 22 ++++++++++++++++------ 33 files changed, 336 insertions(+), 6 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml index 4bc11e7166..46fb446881 100644 --- a/doc/classes/AABB.xml +++ b/doc/classes/AABB.xml @@ -187,6 +187,11 @@ Returns a larger [AABB] that contains both this [AABB] and [code]with[/code]. + + + + + @@ -199,6 +204,11 @@ + + + + + diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 91450e50a4..84e123d712 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -345,6 +345,11 @@ Returns the minimum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. + + + + + @@ -369,6 +374,11 @@ + + + + + diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml index 8fab84d885..9d737ac93f 100644 --- a/doc/classes/Basis.xml +++ b/doc/classes/Basis.xml @@ -118,6 +118,11 @@ The up axis (+Y) points as close to the [code]up[/code] vector as possible while staying perpendicular to the forward axis. The resulting Basis is orthonormalized. The [code]target[/code] and [code]up[/code] vectors cannot be zero, and cannot be parallel to each other. + + + + + @@ -150,6 +155,11 @@ This operator multiplies all components of the [Basis], which scales it uniformly. + + + + + diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml index 5228df706b..5f5ef4f964 100644 --- a/doc/classes/Callable.xml +++ b/doc/classes/Callable.xml @@ -123,6 +123,11 @@ Returns [code]true[/code] if the object exists and has a valid function assigned, or is a custom callable. + + + + + @@ -130,6 +135,11 @@ Returns [code]true[/code] if both [Callable]s invoke different targets. + + + + + diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index f00a20e95e..c85bc775c7 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -259,6 +259,11 @@ [/codeblocks] + + + + + @@ -313,6 +318,11 @@ + + + + + diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index 59088f33fd..a6b97f3a75 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -288,12 +288,22 @@ Returns the list of keys in the [Dictionary]. + + + + + + + + + + diff --git a/doc/classes/NodePath.xml b/doc/classes/NodePath.xml index d05630d277..87b3e39f48 100644 --- a/doc/classes/NodePath.xml +++ b/doc/classes/NodePath.xml @@ -166,12 +166,22 @@ Returns [code]true[/code] if the node path is empty. + + + + + + + + + + diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index 72f134e9e9..9b8057d91a 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -314,6 +314,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -326,6 +331,11 @@ + + + + + diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml index 2dfaefca23..fb744d7534 100644 --- a/doc/classes/PackedColorArray.xml +++ b/doc/classes/PackedColorArray.xml @@ -77,6 +77,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -89,6 +94,11 @@ + + + + + diff --git a/doc/classes/PackedFloat32Array.xml b/doc/classes/PackedFloat32Array.xml index 5c05dd9fa7..0c05e8f3c2 100644 --- a/doc/classes/PackedFloat32Array.xml +++ b/doc/classes/PackedFloat32Array.xml @@ -78,6 +78,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -90,6 +95,11 @@ + + + + + diff --git a/doc/classes/PackedFloat64Array.xml b/doc/classes/PackedFloat64Array.xml index 921ca23859..e55bc0e657 100644 --- a/doc/classes/PackedFloat64Array.xml +++ b/doc/classes/PackedFloat64Array.xml @@ -78,6 +78,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -90,6 +95,11 @@ + + + + + diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml index dfc9cbf939..887a7a1e51 100644 --- a/doc/classes/PackedInt32Array.xml +++ b/doc/classes/PackedInt32Array.xml @@ -78,6 +78,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -90,6 +95,11 @@ + + + + + diff --git a/doc/classes/PackedInt64Array.xml b/doc/classes/PackedInt64Array.xml index dd38a4f5c2..da661b12c3 100644 --- a/doc/classes/PackedInt64Array.xml +++ b/doc/classes/PackedInt64Array.xml @@ -78,6 +78,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -90,6 +95,11 @@ + + + + + diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml index c2055531a5..8f16abaf37 100644 --- a/doc/classes/PackedStringArray.xml +++ b/doc/classes/PackedStringArray.xml @@ -78,6 +78,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -90,6 +95,11 @@ + + + + + diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml index 51b7c951da..3678222da4 100644 --- a/doc/classes/PackedVector2Array.xml +++ b/doc/classes/PackedVector2Array.xml @@ -78,6 +78,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -96,6 +101,11 @@ + + + + + diff --git a/doc/classes/PackedVector3Array.xml b/doc/classes/PackedVector3Array.xml index 04a5e3d42e..84d4297a3b 100644 --- a/doc/classes/PackedVector3Array.xml +++ b/doc/classes/PackedVector3Array.xml @@ -77,6 +77,11 @@ Returns [code]true[/code] if the array is empty. + + + + + @@ -95,6 +100,11 @@ + + + + + diff --git a/doc/classes/Plane.xml b/doc/classes/Plane.xml index c243c3ad15..bc9b3cafb5 100644 --- a/doc/classes/Plane.xml +++ b/doc/classes/Plane.xml @@ -123,12 +123,22 @@ Returns a copy of the plane, normalized. + + + + + + + + + + diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml index 720188f67e..7858ac732b 100644 --- a/doc/classes/Quaternion.xml +++ b/doc/classes/Quaternion.xml @@ -133,6 +133,11 @@ Returns a copy of the quaternion, normalized to unit length. + + + + + @@ -187,6 +192,11 @@ + + + + + diff --git a/doc/classes/RID.xml b/doc/classes/RID.xml index ddd30dbc82..424a76ee44 100644 --- a/doc/classes/RID.xml +++ b/doc/classes/RID.xml @@ -28,6 +28,11 @@ Returns the ID of the referenced resource. + + + + + @@ -46,6 +51,11 @@ + + + + + diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index e6c8ff86b6..915099dc1c 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -147,6 +147,11 @@ Returns a larger [Rect2] that contains this [Rect2] and [code]b[/code]. + + + + + @@ -159,6 +164,11 @@ + + + + + diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index a75c31a007..2a98e0c087 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -137,12 +137,22 @@ Returns a larger [Rect2i] that contains this [Rect2i] and [code]b[/code]. + + + + + + + + + + diff --git a/doc/classes/Signal.xml b/doc/classes/Signal.xml index 0e44abef42..11107c093d 100644 --- a/doc/classes/Signal.xml +++ b/doc/classes/Signal.xml @@ -87,12 +87,22 @@ + + + + + + + + + + diff --git a/doc/classes/String.xml b/doc/classes/String.xml index eb6c52d662..ab6b7a89ef 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -443,6 +443,11 @@ + + + + + @@ -479,6 +484,11 @@ + + + + + diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index 4c2619e782..b4289b5564 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -29,6 +29,11 @@ Creates a new [StringName] from the given [String]. + + + + + @@ -41,6 +46,11 @@ + + + + + diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index 948585aecb..16af2a4075 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -113,6 +113,11 @@ Operations take place in global space. + + + + + @@ -157,6 +162,11 @@ This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. + + + + + diff --git a/doc/classes/Transform3D.xml b/doc/classes/Transform3D.xml index 1c906f6a51..337e7d2693 100644 --- a/doc/classes/Transform3D.xml +++ b/doc/classes/Transform3D.xml @@ -83,6 +83,11 @@ The up axis (+Y) points as close to the [code]up[/code] vector as possible while staying perpendicular to the forward axis. The resulting transform is orthonormalized. The existing rotation, scale, and skew information from the original transform is discarded. The [code]target[/code] and [code]up[/code] vectors cannot be zero, cannot be parallel to each other, and are defined in global/parent space. + + + + + @@ -127,6 +132,11 @@ This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. + + + + + diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index e61f1fe951..b61d5bea0e 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -225,6 +225,11 @@ Returns the vector scaled to unit length. Equivalent to [code]v / v.length()[/code]. + + + + + @@ -297,6 +302,11 @@ + + + + + diff --git a/doc/classes/Vector2i.xml b/doc/classes/Vector2i.xml index 212b1fd22b..2e69d6efdf 100644 --- a/doc/classes/Vector2i.xml +++ b/doc/classes/Vector2i.xml @@ -62,6 +62,11 @@ Returns a new vector with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component. + + + + + @@ -140,6 +145,11 @@ + + + + + diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 78251b0342..61c3480489 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -208,6 +208,11 @@ Returns the vector scaled to unit length. Equivalent to [code]v / v.length()[/code]. + + + + + @@ -292,6 +297,11 @@ + + + + + diff --git a/doc/classes/Vector3i.xml b/doc/classes/Vector3i.xml index 75df182025..bc3712ba3e 100644 --- a/doc/classes/Vector3i.xml +++ b/doc/classes/Vector3i.xml @@ -68,6 +68,11 @@ Returns the axis of the vector's smallest value. See [code]AXIS_*[/code] constants. If all components are equal, this method returns [constant AXIS_Z]. + + + + + @@ -146,6 +151,11 @@ + + + + + diff --git a/doc/classes/bool.xml b/doc/classes/bool.xml index f3b16217e5..2d4ba8872e 100644 --- a/doc/classes/bool.xml +++ b/doc/classes/bool.xml @@ -119,6 +119,11 @@ Cast an [int] value to a boolean value, this method will return [code]false[/code] if [code]0[/code] is passed in, and [code]true[/code] for all other ints. + + + + + @@ -133,6 +138,11 @@ Returns [code]true[/code] if left operand is [code]false[/code] and right operand is [code]true[/code]. + + + + + diff --git a/doc/classes/float.xml b/doc/classes/float.xml index 4bf04fe25f..be8e1638e4 100644 --- a/doc/classes/float.xml +++ b/doc/classes/float.xml @@ -40,6 +40,11 @@ Cast an [int] value to a floating-point value, [code]float(1)[/code] will be equal to [code]1.0[/code]. + + + + + @@ -189,6 +194,11 @@ Returns [code]true[/code] if this [float] is less than or equal to the given [int]. + + + + + diff --git a/doc/classes/int.xml b/doc/classes/int.xml index 32b5fe1012..dd523185df 100644 --- a/doc/classes/int.xml +++ b/doc/classes/int.xml @@ -66,6 +66,11 @@ Cast a float value to an integer value, this method simply removes the number fractions (i.e. rounds [code]from[/code] towards zero), so for example [code]int(2.7)[/code] will be equals to 2, [code]int(0.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. This operation is also called truncation. + + + + + @@ -173,17 +178,17 @@ - - + + - Adds an [int] to a [float]. The result is a [float]. + Adds two integers. - - + + - Adds two integers. + Adds an [int] to a [float]. The result is a [float]. @@ -260,6 +265,11 @@ Returns [code]true[/code] the left integer is less than or equal to the right one. + + + + + -- cgit v1.2.3