From 6772ebcea00df6d01be5b333e7b5a5fff1c7a27a Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Mon, 20 Sep 2021 21:49:02 -0500 Subject: Move the docs for constructors and operators out of methods section --- doc/classes/AABB.xml | 64 +++++---- doc/classes/Array.xml | 166 +++++++++++----------- doc/classes/Basis.xml | 134 +++++++++--------- doc/classes/Callable.xml | 66 ++++----- doc/classes/Color.xml | 230 +++++++++++++++--------------- doc/classes/Dictionary.xml | 58 ++++---- doc/classes/NodePath.xml | 36 ++--- doc/classes/PackedByteArray.xml | 86 ++++++------ doc/classes/PackedColorArray.xml | 86 ++++++------ doc/classes/PackedFloat32Array.xml | 86 ++++++------ doc/classes/PackedFloat64Array.xml | 86 ++++++------ doc/classes/PackedInt32Array.xml | 86 ++++++------ doc/classes/PackedInt64Array.xml | 86 ++++++------ doc/classes/PackedStringArray.xml | 86 ++++++------ doc/classes/PackedVector2Array.xml | 98 ++++++------- doc/classes/PackedVector3Array.xml | 98 ++++++------- doc/classes/Plane.xml | 106 +++++++------- doc/classes/Quaternion.xml | 182 ++++++++++++------------ doc/classes/RID.xml | 48 ++++--- doc/classes/Rect2.xml | 72 +++++----- doc/classes/Rect2i.xml | 68 ++++----- doc/classes/Signal.xml | 36 ++--- doc/classes/String.xml | 174 +++++++++++------------ doc/classes/StringName.xml | 42 +++--- doc/classes/Transform2D.xml | 158 +++++++++++---------- doc/classes/Transform3D.xml | 142 ++++++++++--------- doc/classes/Vector2.xml | 254 ++++++++++++++++----------------- doc/classes/Vector2i.xml | 188 +++++++++++++------------ doc/classes/Vector3.xml | 278 +++++++++++++++++++------------------ doc/classes/Vector3i.xml | 212 ++++++++++++++-------------- doc/classes/bool.xml | 51 +++---- doc/classes/float.xml | 152 ++++++++++---------- doc/classes/int.xml | 205 ++++++++++++++------------- 33 files changed, 2020 insertions(+), 1900 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml index 1be6d5a440..d7b7a309ad 100644 --- a/doc/classes/AABB.xml +++ b/doc/classes/AABB.xml @@ -13,28 +13,30 @@ https://docs.godotengine.org/en/latest/tutorials/math/vector_math.html https://docs.godotengine.org/en/latest/tutorials/math/vectors_advanced.html - - + + Constructs a default-initialized [AABB] with default (zero) values of [member position] and [member size]. - - + + Constructs an [AABB] as a copy of the given [AABB]. - - + + Constructs an [AABB] from a position and size. - + + + @@ -193,45 +195,47 @@ Returns a larger [AABB] that contains both this [AABB] and [code]with[/code]. - + + + + Ending corner. This is calculated as [code]position + size[/code]. Setting this value will change the size. + + + Beginning corner. Typically has values lower than [member end]. + + + Size from [member position] to [member end]. Typically, all components are positive. + If the size is negative, you can use [method abs] to fix it. + + + + - - + + - - + + - - + + - - + + - - - - - Ending corner. This is calculated as [code]position + size[/code]. Setting this value will change the size. - - - Beginning corner. Typically has values lower than [member end]. - - - Size from [member position] to [member end]. Typically, all components are positive. - If the size is negative, you can use [method abs] to fix it. - - + + diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 8898a59036..275b217247 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -44,83 +44,85 @@ - - + + Constructs an empty [Array]. - - + + Constructs an [Array] as a copy of the given [Array]. - - + + Constructs an array from a [PackedByteArray]. - - + + Constructs an array from a [PackedColorArray]. - - + + Constructs an array from a [PackedFloat32Array]. - - + + Constructs an array from a [PackedFloat64Array]. - - + + Constructs an array from a [PackedInt32Array]. - - + + Constructs an array from a [PackedInt64Array]. - - + + Constructs an array from a [PackedStringArray]. - - + + Constructs an array from a [PackedVector2Array]. - - + + Constructs an array from a [PackedVector3Array]. - + + + @@ -345,64 +347,6 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -550,4 +494,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml index 6215c658c3..8ef9cd2e7c 100644 --- a/doc/classes/Basis.xml +++ b/doc/classes/Basis.xml @@ -18,36 +18,36 @@ https://godotengine.org/asset-library/asset/676 https://godotengine.org/asset-library/asset/583 - - + + Constructs a default-initialized [Basis] set to [constant IDENTITY]. - - + + Constructs a [Basis] as a copy of the given [Basis]. - - + + Constructs a pure rotation basis matrix, rotated around the given [code]axis[/code] by [code]phi[/code], in radians. The axis must be a normalized vector. - - + + Constructs a pure rotation basis matrix from the given quaternion. - - + + @@ -55,7 +55,9 @@ Constructs a basis matrix from 3 axis vectors (matrix columns). - + + + @@ -125,60 +127,6 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - This operator multiplies all components of the [Basis], which scales it uniformly. - - - - - - - This operator multiplies all components of the [Basis], which scales it uniformly. - - - - - - - - - - - - - - - - - - - @@ -274,4 +222,60 @@ The basis that will flip something along the Z axis when used in a transformation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This operator multiplies all components of the [Basis], which scales it uniformly. + + + + + + + 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 0a95836e96..2d3571e36c 100644 --- a/doc/classes/Callable.xml +++ b/doc/classes/Callable.xml @@ -35,28 +35,30 @@ - - + + Constructs a null [Callable] with no object nor method bound. - - + + Constructs a [Callable] as a copy of the given [Callable]. - - + + Creates a new [Callable] for the method called [code]method[/code] in the specified [code]object[/code]. - + + + @@ -123,30 +125,6 @@ Returns [code]true[/code] if the object exists and has a valid function assigned, or is a custom callable. - - - - - - - - - - Returns [code]true[/code] if both [Callable]s invoke different targets. - - - - - - - - - - - - Returns [code]true[/code] if both [Callable]s invoke the same custom target. - - @@ -168,4 +146,30 @@ + + + + + + + + + + + Returns [code]true[/code] if both [Callable]s invoke different targets. + + + + + + + + + + + + Returns [code]true[/code] if both [Callable]s invoke the same custom target. + + + diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index c85bc775c7..71ec225cf6 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -15,21 +15,14 @@ https://godotengine.org/asset-library/asset/146 https://godotengine.org/asset-library/asset/133 - - + + Constructs a default-initialized [Color] with all components set to [code]0[/code]. - - - - - - Constructs a [Color] as a copy of the given [Color]. - - - + + @@ -44,57 +37,66 @@ [/csharp] [/codeblocks] - - + + + + + + Constructs a [Color] as a copy of the given [Color]. + + + Constructs a [Color] either from an HTML color code or from a standardized color name. Supported color names are the same as the constants. - - + + Constructs a [Color] either from an HTML color code or from a standardized color name, with [code]alpha[/code] on the range of 0 to 1. Supported color names are the same as the constants. - - + + - - Constructs a [Color] from RGBA values, typically between 0 and 1. + Constructs a [Color] from RGB values, typically between 0 and 1. Alpha will be 1. [codeblocks] [gdscript] - var color = Color(0.2, 1.0, 0.7, 0.8) # Similar to `Color8(51, 255, 178, 204)` + var color = Color(0.2, 1.0, 0.7) # Similar to `Color8(51, 255, 178, 255)` [/gdscript] [csharp] - var color = new Color(0.2f, 1.0f, 0.7f, 0.8f); // Similar to `Color.Color8(51, 255, 178, 255, 204)` + var color = new Color(0.2f, 1.0f, 0.7f); // Similar to `Color.Color8(51, 255, 178, 255)` [/csharp] [/codeblocks] - - + + + - Constructs a [Color] from RGB values, typically between 0 and 1. Alpha will be 1. + Constructs a [Color] from RGBA values, typically between 0 and 1. [codeblocks] [gdscript] - var color = Color(0.2, 1.0, 0.7) # Similar to `Color8(51, 255, 178, 255)` + var color = Color(0.2, 1.0, 0.7, 0.8) # Similar to `Color8(51, 255, 178, 204)` [/gdscript] [csharp] - var color = new Color(0.2f, 1.0f, 0.7f); // Similar to `Color.Color8(51, 255, 178, 255)` + var color = new Color(0.2f, 1.0f, 0.7f, 0.8f); // Similar to `Color.Color8(51, 255, 178, 255, 204)` [/csharp] [/codeblocks] - + + + @@ -259,92 +261,6 @@ [/codeblocks] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -937,4 +853,92 @@ Yellow green color. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index bab1a261ab..d661da5dd0 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -181,20 +181,22 @@ https://godotengine.org/asset-library/asset/676 https://godotengine.org/asset-library/asset/677 - - + + Constructs an empty [Dictionary]. - - + + Constructs a [Dictionary] as a copy of the given [Dictionary]. - + + + @@ -288,45 +290,47 @@ Returns the list of keys in the [Dictionary]. - - + + + Returns the number of keys in the dictionary. - - - + + + Returns the list of values in the [Dictionary]. - + + + - - + + - - - - + + + - - - + + + + - Returns the number of keys in the dictionary. - - - + + + + - Returns the list of values in the [Dictionary]. - - + + diff --git a/doc/classes/NodePath.xml b/doc/classes/NodePath.xml index 17c6ba38b7..e2772a3ee0 100644 --- a/doc/classes/NodePath.xml +++ b/doc/classes/NodePath.xml @@ -25,21 +25,21 @@ https://godotengine.org/asset-library/asset/520 - - + + Constructs an empty [NodePath]. - - + + Constructs a [NodePath] as a copy of the given [NodePath]. - - + + @@ -61,7 +61,9 @@ "/root/Level/Path2D" [/codeblock] - + + + @@ -166,27 +168,29 @@ Returns [code]true[/code] if the node path is empty. - + + + - - + + - - + + - - + + - - + + diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index 39733baf40..f951df1eb7 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -8,27 +8,29 @@ - - + + Constructs an empty [PackedByteArray]. - - + + Constructs a [PackedByteArray] as a copy of the given [PackedByteArray]. - - + + Constructs a new [PackedByteArray]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -323,40 +325,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -445,4 +413,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml index 00e670646d..4aa8a19630 100644 --- a/doc/classes/PackedColorArray.xml +++ b/doc/classes/PackedColorArray.xml @@ -8,27 +8,29 @@ - - + + Constructs an empty [PackedColorArray]. - - + + Constructs a [PackedColorArray] as a copy of the given [PackedColorArray]. - - + + Constructs a new [PackedColorArray]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -86,40 +88,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -180,4 +148,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedFloat32Array.xml b/doc/classes/PackedFloat32Array.xml index 2ee2ac44df..68fb45a62a 100644 --- a/doc/classes/PackedFloat32Array.xml +++ b/doc/classes/PackedFloat32Array.xml @@ -9,27 +9,29 @@ - - + + Constructs an empty [PackedFloat32Array]. - - + + Constructs a [PackedFloat32Array] as a copy of the given [PackedFloat32Array]. - - + + Constructs a new [PackedFloat32Array]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -87,40 +89,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -183,4 +151,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedFloat64Array.xml b/doc/classes/PackedFloat64Array.xml index 7414bc72fc..740591a0c0 100644 --- a/doc/classes/PackedFloat64Array.xml +++ b/doc/classes/PackedFloat64Array.xml @@ -9,27 +9,29 @@ - - + + Constructs an empty [PackedFloat64Array]. - - + + Constructs a [PackedFloat64Array] as a copy of the given [PackedFloat64Array]. - - + + Constructs a new [PackedFloat64Array]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -87,40 +89,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -183,4 +151,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml index 8ecf4a70ae..7a01bb6c7c 100644 --- a/doc/classes/PackedInt32Array.xml +++ b/doc/classes/PackedInt32Array.xml @@ -9,27 +9,29 @@ - - + + Constructs an empty [PackedInt32Array]. - - + + Constructs a [PackedInt32Array] as a copy of the given [PackedInt32Array]. - - + + Constructs a new [PackedInt32Array]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -87,40 +89,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -183,4 +151,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedInt64Array.xml b/doc/classes/PackedInt64Array.xml index b82ce79009..c7b69d4ad5 100644 --- a/doc/classes/PackedInt64Array.xml +++ b/doc/classes/PackedInt64Array.xml @@ -9,27 +9,29 @@ - - + + Constructs an empty [PackedInt64Array]. - - + + Constructs a [PackedInt64Array] as a copy of the given [PackedInt64Array]. - - + + Constructs a new [PackedInt64Array]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -87,40 +89,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -183,4 +151,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml index 353bbfb827..dfebfb718b 100644 --- a/doc/classes/PackedStringArray.xml +++ b/doc/classes/PackedStringArray.xml @@ -9,27 +9,29 @@ https://godotengine.org/asset-library/asset/677 - - + + Constructs an empty [PackedStringArray]. - - + + Constructs a [PackedStringArray] as a copy of the given [PackedStringArray]. - - + + Constructs a new [PackedStringArray]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -87,40 +89,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -181,4 +149,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml index 7b7df221e7..bf9b7e97d4 100644 --- a/doc/classes/PackedVector2Array.xml +++ b/doc/classes/PackedVector2Array.xml @@ -9,27 +9,29 @@ https://godotengine.org/asset-library/asset/519 - - + + Constructs an empty [PackedVector2Array]. - - + + Constructs a [PackedVector2Array] as a copy of the given [PackedVector2Array]. - - + + Constructs a new [PackedVector2Array]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -87,46 +89,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -187,4 +149,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/PackedVector3Array.xml b/doc/classes/PackedVector3Array.xml index efbf2169fd..b439f8f217 100644 --- a/doc/classes/PackedVector3Array.xml +++ b/doc/classes/PackedVector3Array.xml @@ -8,27 +8,29 @@ - - + + Constructs an empty [PackedVector3Array]. - - + + Constructs a [PackedVector3Array] as a copy of the given [PackedVector3Array]. - - + + Constructs a new [PackedVector3Array]. Optionally, you can pass in a generic [Array] that will be converted. - + + + @@ -86,46 +88,6 @@ Returns [code]true[/code] if the array is empty. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -186,4 +148,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/Plane.xml b/doc/classes/Plane.xml index f7a68e6a24..a20607d0a7 100644 --- a/doc/classes/Plane.xml +++ b/doc/classes/Plane.xml @@ -9,21 +9,21 @@ https://docs.godotengine.org/en/latest/tutorials/math/index.html - - + + Constructs a default-initialized [Plane] with all components set to [code]0[/code]. - - + + Constructs a [Plane] as a copy of the given [Plane]. - - + + @@ -32,31 +32,31 @@ Creates a plane from the four parameters. The three components of the resulting plane's [member normal] are [code]a[/code], [code]b[/code] and [code]c[/code], and the plane has a distance of [code]d[/code] from the origin. - - + + - - Creates a plane from the normal vector and a point in the plane. + Creates a plane from the normal vector. The plane will intersect the origin. - - + + - Creates a plane from the normal vector and the plane's distance to the origin. + Creates a plane from the normal vector and the plane's distance from the origin. - - + + + - Creates a plane from the normal vector. The plane will intersect the origin. + Creates a plane from the normal vector and a point on the plane. - - + + @@ -64,7 +64,9 @@ Creates a plane from the three points, given in clockwise order. - + + + @@ -130,38 +132,6 @@ Returns a copy of the plane, normalized. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -200,4 +170,38 @@ A plane that extends in the X and Y axes (normal vector points +Z). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml index 9c948ca21a..95b2316bf3 100644 --- a/doc/classes/Quaternion.xml +++ b/doc/classes/Quaternion.xml @@ -12,49 +12,49 @@ https://docs.godotengine.org/en/latest/tutorials/3d/using_transforms.html#interpolating-with-quaternions https://godotengine.org/asset-library/asset/678 - - + + Constructs a default-initialized quaternion with all components set to [code]0[/code]. - - + + Constructs a [Quaternion] as a copy of the given [Quaternion]. - - + + - - + + Constructs a quaternion that will rotate around the given axis by the specified angle. The axis must be a normalized vector. - - + + - - + + Constructs a quaternion from the given [Basis]. - - + + @@ -63,7 +63,9 @@ Constructs a quaternion defined by the given values. - + + + @@ -142,131 +144,133 @@ Returns a copy of the quaternion, normalized to unit length. - - + + + + + Returns the result of the spherical linear interpolation between this quaternion and [code]to[/code] by amount [code]weight[/code]. + [b]Note:[/b] Both quaternions must be normalized. - - - + + + + + Returns the result of the spherical linear interpolation between this quaternion and [code]to[/code] by amount [code]weight[/code], but without checking if the rotation path is not bigger than 90 degrees. - - - + + + + W component of the quaternion (real part). + Quaternion components should usually not be manipulated directly. + + + X component of the quaternion (imaginary [code]i[/code] axis part). + Quaternion components should usually not be manipulated directly. + + + Y component of the quaternion (imaginary [code]j[/code] axis part). + Quaternion components should usually not be manipulated directly. + + + Z component of the quaternion (imaginary [code]k[/code] axis part). + Quaternion components should usually not be manipulated directly. + + + + + The identity quaternion, representing no rotation. Equivalent to an identity [Basis] matrix. If a vector is transformed by an identity quaternion, it will not change. + + + + + - - + + + + + + + + - - + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - + + - - - Returns the result of the spherical linear interpolation between this quaternion and [code]to[/code] by amount [code]weight[/code]. - [b]Note:[/b] Both quaternions must be normalized. - - + + - - - Returns the result of the spherical linear interpolation between this quaternion and [code]to[/code] by amount [code]weight[/code], but without checking if the rotation path is not bigger than 90 degrees. - - - - - W component of the quaternion (real part). - Quaternion components should usually not be manipulated directly. - - - X component of the quaternion (imaginary [code]i[/code] axis part). - Quaternion components should usually not be manipulated directly. - - - Y component of the quaternion (imaginary [code]j[/code] axis part). - Quaternion components should usually not be manipulated directly. - - - Z component of the quaternion (imaginary [code]k[/code] axis part). - Quaternion components should usually not be manipulated directly. - - - - - The identity quaternion, representing no rotation. Equivalent to an identity [Basis] matrix. If a vector is transformed by an identity quaternion, it will not change. - - + + diff --git a/doc/classes/RID.xml b/doc/classes/RID.xml index b4ba74f7e5..695b0933fa 100644 --- a/doc/classes/RID.xml +++ b/doc/classes/RID.xml @@ -8,71 +8,75 @@ - - + + Constructs an empty [RID] with the invalid ID [code]0[/code]. - - + + Constructs a [RID] as a copy of the given [RID]. - + + + Returns the ID of the referenced resource. - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index a6bb81b589..01bec10ed8 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -13,36 +13,36 @@ https://docs.godotengine.org/en/latest/tutorials/math/vector_math.html https://docs.godotengine.org/en/latest/tutorials/math/vectors_advanced.html - - + + Constructs a default-initialized [Rect2] with default (zero) values of [member position] and [member size]. - - + + Constructs a [Rect2] as a copy of the given [Rect2]. - - + + Constructs a [Rect2] from a [Rect2i]. - - + + Constructs a [Rect2] by position and size. - - + + @@ -51,7 +51,9 @@ Constructs a [Rect2] by x, y, width, and height. - + + + @@ -153,45 +155,47 @@ Returns a larger [Rect2] that contains this [Rect2] and [code]b[/code]. - + + + + Ending corner. This is calculated as [code]position + size[/code]. Setting this value will change the size. + + + Beginning corner. Typically has values lower than [member end]. + + + Size from [member position] to [member end]. Typically, all components are positive. + If the size is negative, you can use [method abs] to fix it. + + + + - - + + - - + + - - + + - - + + - - - - - Ending corner. This is calculated as [code]position + size[/code]. Setting this value will change the size. - - - Beginning corner. Typically has values lower than [member end]. - - - Size from [member position] to [member end]. Typically, all components are positive. - If the size is negative, you can use [method abs] to fix it. - - + + diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index 0ba013cade..fc27c64fa5 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -11,36 +11,36 @@ https://docs.godotengine.org/en/latest/tutorials/math/index.html https://docs.godotengine.org/en/latest/tutorials/math/vector_math.html - - + + Constructs a default-initialized [Rect2i] with default (zero) values of [member position] and [member size]. - - + + Constructs a [Rect2i] as a copy of the given [Rect2i]. - - + + Constructs a new [Rect2i] from [Rect2]. The floating point coordinates will be truncated. - - + + Constructs a [Rect2i] by position and size. - - + + @@ -49,7 +49,9 @@ Constructs a [Rect2i] by x, y, width, and height. - + + + @@ -144,39 +146,41 @@ Returns a larger [Rect2i] that contains this [Rect2i] and [code]b[/code]. - + + + + Ending corner. This is calculated as [code]position + size[/code]. Setting this value will change the size. + + + Beginning corner. Typically has values lower than [member end]. + + + Size from [member position] to [member end]. Typically, all components are positive. + If the size is negative, you can use [method abs] to fix it. + + + + - - + + - - + + - - + + - - - - - Ending corner. This is calculated as [code]position + size[/code]. Setting this value will change the size. - - - Beginning corner. Typically has values lower than [member end]. - - - Size from [member position] to [member end]. Typically, all components are positive. - If the size is negative, you can use [method abs] to fix it. - - + + diff --git a/doc/classes/Signal.xml b/doc/classes/Signal.xml index f78266a20c..79d6ba8768 100644 --- a/doc/classes/Signal.xml +++ b/doc/classes/Signal.xml @@ -7,28 +7,30 @@ - - + + Constructs a null [Signal] with no object nor signal name bound. - - + + Constructs a [Signal] as a copy of the given [Signal]. - - + + Creates a new [Signal] with the name [code]signal[/code] in the specified [code]object[/code]. - + + + @@ -93,27 +95,29 @@ - + + + - - + + - - + + - - + + - - + + diff --git a/doc/classes/String.xml b/doc/classes/String.xml index abb68e0d05..1190d90190 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -9,34 +9,36 @@ https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/gdscript_format_string.html - - + + Constructs an empty [String] ([code]""[/code]). - - + + Constructs a [String] as a copy of the given [String]. - - + + Constructs a new String from the given [NodePath]. - - + + Constructs a new String from the given [StringName]. - + + + @@ -443,82 +445,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -843,4 +769,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml index 113195d91c..b32665a09f 100644 --- a/doc/classes/StringName.xml +++ b/doc/classes/StringName.xml @@ -8,60 +8,62 @@ - - + + Constructs an empty [StringName]. - - + + Constructs a [StringName] as a copy of the given [StringName]. - - + + Creates a new [StringName] from the given [String]. - - + + + + - - + + - - + + - - + + - - + + - - + + - - + + diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index d64752a00f..ab7632e08e 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -13,29 +13,29 @@ https://godotengine.org/asset-library/asset/584 https://godotengine.org/asset-library/asset/583 - - + + Constructs a default-initialized [Transform2D] set to [constant IDENTITY]. - - + + Constructs a [Transform2D] as a copy of the given [Transform2D]. - - + + Constructs the transform from a given angle (in radians) and position. - - + + @@ -44,8 +44,8 @@ Constructs the transform from a given angle (in radians), scale, skew (in radians) and position. - - + + @@ -53,7 +53,9 @@ Constructs the transform from 3 [Vector2] values representing [member x], [member y], and the [member origin] (the three column vectors). - + + + @@ -129,72 +131,6 @@ Operations take place in global space. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. - - - - - - - This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. - - - - - - - - - - - - - - - - - - - @@ -267,4 +203,72 @@ The [Transform2D] that will flip something along the Y axis. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This operator multiplies all components of the [Transform2D], including the origin vector, which scales it uniformly. + + + + + + + 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 63a7746328..8c4965abb4 100644 --- a/doc/classes/Transform3D.xml +++ b/doc/classes/Transform3D.xml @@ -15,29 +15,29 @@ https://godotengine.org/asset-library/asset/125 https://godotengine.org/asset-library/asset/583 - - + + Constructs a default-initialized [Transform3D] set to [constant IDENTITY]. - - + + Constructs a [Transform3D] as a copy of the given [Transform3D]. - - + + Constructs a Transform3D from a [Basis] and [Vector3]. - - + + @@ -46,7 +46,9 @@ Constructs a Transform3D from four [Vector3] values (matrix columns). Each axis corresponds to local basis vectors (some of which may be scaled). - + + + @@ -83,66 +85,6 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. - - - - - - - This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. - - - - - - - - - - - - - @@ -195,4 +137,66 @@ [Transform3D] with mirroring applied perpendicular to the XY plane. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This operator multiplies all components of the [Transform3D], including the origin vector, which scales it uniformly. + + + + + + + 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 4035fb0ad2..eaaf41561a 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -16,35 +16,37 @@ https://godotengine.org/asset-library/asset/584 https://github.com/godotengine/godot-demo-projects/tree/master/2d - - + + Constructs a default-initialized [Vector2] with all components set to [code]0[/code]. - - + + Constructs a [Vector2] as a copy of the given [Vector2]. - - + + Constructs a new [Vector2] from [Vector2i]. - - + + Constructs a new [Vector2] from the given [code]x[/code] and [code]y[/code]. - + + + @@ -225,122 +227,6 @@ Returns the vector scaled to unit length. Equivalent to [code]v / v.length()[/code]. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -455,4 +341,122 @@ Down unit vector. Y is down in 2D, so this vector points +Y. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/Vector2i.xml b/doc/classes/Vector2i.xml index 52fd8c6780..71882e5b0c 100644 --- a/doc/classes/Vector2i.xml +++ b/doc/classes/Vector2i.xml @@ -13,35 +13,37 @@ https://docs.godotengine.org/en/latest/tutorials/math/vector_math.html https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab - - + + Constructs a default-initialized [Vector2i] with all components set to [code]0[/code]. - - + + Constructs a [Vector2i] as a copy of the given [Vector2i]. - - + + Constructs a new [Vector2i] from [Vector2]. The floating point coordinates will be truncated. - - + + Constructs a new [Vector2i] from the given [code]x[/code] and [code]y[/code]. - + + + @@ -62,167 +64,169 @@ 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. - - + + + Returns the vector with each component set to one or negative one, depending on the signs of the components. - + + + + The vector's X component. Also accessible by using the index position [code][0][/code]. + + + The vector's Y component. Also accessible by using the index position [code][1][/code]. + + + + + Enumerated value for the X axis. + + + Enumerated value for the Y axis. + + + Zero vector, a vector with all components set to [code]0[/code]. + + + One vector, a vector with all components set to [code]1[/code]. + + + Left unit vector. Represents the direction of left. + + + Right unit vector. Represents the direction of right. + + + Up unit vector. Y is down in 2D, so this vector points -Y. + + + Down unit vector. Y is down in 2D, so this vector points +Y. + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - Returns the vector with each component set to one or negative one, depending on the signs of the components. - - - - - - The vector's X component. Also accessible by using the index position [code][0][/code]. - - - The vector's Y component. Also accessible by using the index position [code][1][/code]. - - - - - Enumerated value for the X axis. - - - Enumerated value for the Y axis. - - - Zero vector, a vector with all components set to [code]0[/code]. - - - One vector, a vector with all components set to [code]1[/code]. - - - Left unit vector. Represents the direction of left. - - - Right unit vector. Represents the direction of right. - - - Up unit vector. Y is down in 2D, so this vector points -Y. - - - Down unit vector. Y is down in 2D, so this vector points +Y. - - + + diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 078ba1e1a4..a94cc0086f 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -16,28 +16,28 @@ https://godotengine.org/asset-library/asset/584 https://github.com/godotengine/godot-demo-projects/tree/master/3d - - + + Constructs a default-initialized [Vector3] with all components set to [code]0[/code]. - - + + Constructs a [Vector3] as a copy of the given [Vector3]. - - + + Constructs a new [Vector3] from [Vector3i]. - - + + @@ -45,7 +45,9 @@ Returns a [Vector3] with the given components. - + + + @@ -219,134 +221,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -483,4 +357,134 @@ Back unit vector. Represents the local direction of back, and the global direction of south. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/classes/Vector3i.xml b/doc/classes/Vector3i.xml index 2a7ee1ffb8..5cd458a2be 100644 --- a/doc/classes/Vector3i.xml +++ b/doc/classes/Vector3i.xml @@ -13,28 +13,28 @@ https://docs.godotengine.org/en/latest/tutorials/math/vector_math.html https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab - - + + Constructs a default-initialized [Vector3i] with all components set to [code]0[/code]. - - + + Constructs a [Vector3i] as a copy of the given [Vector3i]. - - + + Constructs a new [Vector3i] from [Vector3]. The floating point coordinates will be truncated. - - + + @@ -42,7 +42,9 @@ Returns a [Vector3i] with the given components. - + + + @@ -68,179 +70,181 @@ 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]. - - + + + Returns the vector with each component set to one or negative one, depending on the signs of the components. - + + + + The vector's X component. Also accessible by using the index position [code][0][/code]. + + + The vector's Y component. Also accessible by using the index position [code][1][/code]. + + + The vector's Z component. Also accessible by using the index position [code][2][/code]. + + + + + Enumerated value for the X axis. + + + Enumerated value for the Y axis. + + + Enumerated value for the Z axis. + + + Zero vector, a vector with all components set to [code]0[/code]. + + + One vector, a vector with all components set to [code]1[/code]. + + + Left unit vector. Represents the local direction of left, and the global direction of west. + + + Right unit vector. Represents the local direction of right, and the global direction of east. + + + Up unit vector. + + + Down unit vector. + + + Forward unit vector. Represents the local direction of forward, and the global direction of north. + + + Back unit vector. Represents the local direction of back, and the global direction of south. + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - Returns the vector with each component set to one or negative one, depending on the signs of the components. - - - - - - The vector's X component. Also accessible by using the index position [code][0][/code]. - - - The vector's Y component. Also accessible by using the index position [code][1][/code]. - - - The vector's Z component. Also accessible by using the index position [code][2][/code]. - - - - - Enumerated value for the X axis. - - - Enumerated value for the Y axis. - - - Enumerated value for the Z axis. - - - Zero vector, a vector with all components set to [code]0[/code]. - - - One vector, a vector with all components set to [code]1[/code]. - - - Left unit vector. Represents the local direction of left, and the global direction of west. - - - Right unit vector. Represents the local direction of right, and the global direction of east. - - - Up unit vector. - - - Down unit vector. - - - Forward unit vector. Represents the local direction of forward, and the global direction of north. - - - Back unit vector. Represents the local direction of back, and the global direction of south. - - + + diff --git a/doc/classes/bool.xml b/doc/classes/bool.xml index 39e34a7b96..49f2d2dd7f 100644 --- a/doc/classes/bool.xml +++ b/doc/classes/bool.xml @@ -91,71 +91,74 @@ - - + + Constructs a default-initialized [bool] set to [code]false[/code]. - - + + Constructs a [bool] as a copy of the given [bool]. - - + + Cast a [float] value to a boolean value, this method will return [code]false[/code] if [code]0.0[/code] is passed in, and [code]true[/code] for all other floats. - - + + 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. - - + + + + - - + + Returns [code]true[/code] if two bools are different, i.e. one is [code]true[/code] and the other is [code]false[/code]. - - + + - Returns [code]true[/code] if left operand is [code]false[/code] and right operand is [code]true[/code]. + Returns [code]true[/code] if the left operand is [code]false[/code] and the right operand is [code]true[/code]. - - + + + Returns [code]true[/code] if two bools are equal, i.e. both are [code]true[/code] or both are [code]false[/code]. - - + + Returns [code]true[/code] if two bools are equal, i.e. both are [code]true[/code] or both are [code]false[/code]. - - + + - Returns [code]true[/code] if left operand is [code]true[/code] and right operand is [code]false[/code]. + Returns [code]true[/code] if the left operand is [code]true[/code] and the right operand is [code]false[/code]. - - + + diff --git a/doc/classes/float.xml b/doc/classes/float.xml index b45cdd2099..8231173bac 100644 --- a/doc/classes/float.xml +++ b/doc/classes/float.xml @@ -12,61 +12,70 @@ https://en.wikipedia.org/wiki/Double-precision_floating-point_format https://en.wikipedia.org/wiki/Single-precision_floating-point_format - - + + Constructs a default-initialized [float] set to [code]0.0[/code]. - - + + Constructs a [float] as a copy of the given [float]. - - + + Cast a [bool] value to a floating-point value, [code]float(true)[/code] will be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0. - - + + Cast an [int] value to a floating-point value, [code]float(1)[/code] will be equal to [code]1.0[/code]. - - + + + + - - + + Returns [code]true[/code] if two floats are different from each other. - - + + Returns [code]true[/code] if the integer has different value than the float. - - + + Multiplies two [float]s. - - + + + + + + Multiplies each component of the [Quaternion] by the given [float]. + + + @@ -75,8 +84,8 @@ print(2.5 * Vector2(1, 1)) # Vector2(2.5, 2.5) [/codeblock] - - + + @@ -85,29 +94,22 @@ print(2.0 * Vector2i(1, 1)) # Vector2i(2.0, 2.0) [/codeblock] - - + + Multiplies each component of the [Vector3] by the given [float]. - - + + Multiplies each component of the [Vector3i] by the given [float]. - - - - - - Multiplies each component of the [Quaternion] by the given [float]. - - - + + @@ -116,143 +118,143 @@ print(1.5 * Color(0.5, 0.5, 0.5)) # Color(0.75, 0.75, 0.75) [/codeblock] - - + + Multiplies a [float] and an [int]. The result is a [float]. - - + + Adds two floats. - - + + Adds a [float] and an [int]. The result is a [float]. - - + + Subtracts a float from a float. - - + + Subtracts an [int] from a [float]. The result is a [float]. - - + + Divides two floats. - - + + Divides a [float] by an [int]. The result is a [float]. - - + + Returns [code]true[/code] the left float is less than the right one. - - + + Returns [code]true[/code] if this [float] is less than the given [int]. - - + + Returns [code]true[/code] the left integer is less than or equal to the right one. - - + + Returns [code]true[/code] if this [float] is less than or equal to the given [int]. - - + + - - + + Returns [code]true[/code] if both floats are exactly equal. [b]Note:[/b] Due to floating-point precision errors, consider using [method @GlobalScope.is_equal_approx] or [method @GlobalScope.is_zero_approx] instead, which are more reliable. - - + + Returns [code]true[/code] if the [float] and the given [int] are equal. - - + + Returns [code]true[/code] the left float is greater than the right one. - - + + Returns [code]true[/code] if this [float] is greater than the given [int]. - - + + Returns [code]true[/code] the left float is greater than or equal to the right one. - - + + Returns [code]true[/code] if this [float] is greater than or equal to the given [int]. - - + + Returns the same value as if the [code]+[/code] was not there. Unary [code]+[/code] does nothing, but sometimes it can make your code more readable. - - + + Returns the negative value of the [float]. If positive, turns the number negative. If negative, turns the number positive. With floats, the number zero can be either positive or negative. - - + + diff --git a/doc/classes/int.xml b/doc/classes/int.xml index a75d11ba4a..94c2601e4a 100644 --- a/doc/classes/int.xml +++ b/doc/classes/int.xml @@ -38,54 +38,56 @@ - - + + Constructs a default-initialized [int] set to [code]0[/code]. - - + + Constructs an [int] as a copy of the given [int]. - - + + Cast a [bool] value to an integer value, [code]int(true)[/code] will be equals to 1 and [code]int(false)[/code] will be equals to 0. - - + + 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. - - + + + + - - + + Returns [code]true[/code] if operands are different from each other. - - + + Returns [code]true[/code] if operands are different from each other. - - + + @@ -96,8 +98,8 @@ print(12 % 2) # 2 [/codeblock] - - + + @@ -114,98 +116,93 @@ do_stuff() [/codeblock] - - + + + + + + + + + + + + + + Multiplies two [int]s. - - + + Multiplies an [int] and a [float]. The result is a [float]. - - + + - Multiplies each component of the vector by the given integer. + Multiplies each component of the [Vector2] by the given [int]. [codeblock] print(2 * Vector2(1, 1)) # Vector2(2, 2) [/codeblock] - - + + - Multiplies each component of the integer vector by the given integer. + Multiplies each component of the [Vector2i] by the given [int]. - - + + - Multiplies each component of the vector by the given integer. + Multiplies each component of the [Vector3] by the given [int]. - - + + - Multiplies each component of the integer vector by the given integer. - - - - - - - Multiplies each component of the quaternion by the given integer. + Multiplies each component of the [Vector3i] by the given [int]. - - - - + + + + - Multiplies each component of the color by the given integer. - [codeblock] - print(2 * Color(0.5, 0.5, 0.5)) # Color(1, 1, 1) - [/codeblock] + Adds an [int] and a [float]. The result is a [float]. - - + + Adds two integers. - - - - - - Adds an [int] to a [float]. The result is a [float]. - - - + + Subtracts a [float] from an [int]. The result is a [float]. - - + + Subtracts two integers. - - + + @@ -214,8 +211,8 @@ print(10 / 3.0) # 3.333... [/codeblock] - - + + @@ -225,22 +222,22 @@ print(10 / 3) # 3 [/codeblock] - - + + Returns [code]true[/code] if this [int] is less than the given [float]. - - + + Returns [code]true[/code] the left integer is less than the right one. - - + + @@ -250,69 +247,69 @@ print(10 << 4) # 160 [/codeblock] - - + + Returns [code]true[/code] if this [int] is less than or equal to the given [float]. - - + + Returns [code]true[/code] the left integer is less than or equal to the right one. - - + + - - + + Returns [code]true[/code] if the integer is equal to the given [float]. - - + + Returns [code]true[/code] if both integers are equal. - - + + Returns [code]true[/code] if this [int] is greater than the given [float]. - - + + Returns [code]true[/code] the left integer is greater than the right one. - - + + Returns [code]true[/code] if this [int] is greater than or equal to the given [float]. - - + + Returns [code]true[/code] the left integer is greater than or equal to the right one. - - + + @@ -322,8 +319,8 @@ print(10 >> 2) # 2 [/codeblock] - - + + @@ -333,20 +330,20 @@ print(4 ^ 7) # 3 [/codeblock] - - + + Returns the same value as if the [code]+[/code] was not there. Unary [code]+[/code] does nothing, but sometimes it can make your code more readable. - - + + Returns the negated value of the [int]. If positive, turns the number negative. If negative, turns the number positive. If zero, does nothing. - - + + @@ -363,8 +360,8 @@ flags |= 4 [/codeblock] - - + + Returns the result of bitwise [code]NOT[/code] operation for the integer. It's effectively equal to [code]-int + 1[/code]. @@ -373,6 +370,6 @@ print(~7) # -6 [/codeblock] - - + + -- cgit v1.2.3