Update documentation's "Prints" comments after #47502

This commit is contained in:
Micky
2024-11-11 18:21:40 +01:00
parent 893bbdfde8
commit d90f045d24
14 changed files with 84 additions and 84 deletions

View File

@ -208,7 +208,7 @@
<description>
Gets the remainder of each component of the [Vector4i] with the components of the given [Vector4i]. This operation uses truncated division, which is often not desired as it does not work well with negative numbers. Consider using [method @GlobalScope.posmod] instead if you want to handle negative numbers.
[codeblock]
print(Vector4i(10, -20, 30, -40) % Vector4i(7, 8, 9, 10)) # Prints "(3, -4, 3, 0)"
print(Vector4i(10, -20, 30, -40) % Vector4i(7, 8, 9, 10)) # Prints (3, -4, 3, 0)
[/codeblock]
</description>
</operator>
@ -218,7 +218,7 @@
<description>
Gets the remainder of each component of the [Vector4i] with the given [int]. This operation uses truncated division, which is often not desired as it does not work well with negative numbers. Consider using [method @GlobalScope.posmod] instead if you want to handle negative numbers.
[codeblock]
print(Vector4i(10, -20, 30, -40) % 7) # Prints "(3, -6, 2, -5)"
print(Vector4i(10, -20, 30, -40) % 7) # Prints (3, -6, 2, -5)
[/codeblock]
</description>
</operator>
@ -228,7 +228,7 @@
<description>
Multiplies each component of the [Vector4i] by the components of the given [Vector4i].
[codeblock]
print(Vector4i(10, 20, 30, 40) * Vector4i(3, 4, 5, 6)) # Prints "(30, 80, 150, 240)"
print(Vector4i(10, 20, 30, 40) * Vector4i(3, 4, 5, 6)) # Prints (30, 80, 150, 240)
[/codeblock]
</description>
</operator>
@ -239,7 +239,7 @@
Multiplies each component of the [Vector4i] by the given [float].
Returns a Vector4 value due to floating-point operations.
[codeblock]
print(Vector4i(10, 20, 30, 40) * 2) # Prints "(20, 40, 60, 80)"
print(Vector4i(10, 20, 30, 40) * 2) # Prints (20.0, 40.0, 60.0, 80.0)
[/codeblock]
</description>
</operator>
@ -256,7 +256,7 @@
<description>
Adds each component of the [Vector4i] by the components of the given [Vector4i].
[codeblock]
print(Vector4i(10, 20, 30, 40) + Vector4i(3, 4, 5, 6)) # Prints "(13, 24, 35, 46)"
print(Vector4i(10, 20, 30, 40) + Vector4i(3, 4, 5, 6)) # Prints (13, 24, 35, 46)
[/codeblock]
</description>
</operator>
@ -266,7 +266,7 @@
<description>
Subtracts each component of the [Vector4i] by the components of the given [Vector4i].
[codeblock]
print(Vector4i(10, 20, 30, 40) - Vector4i(3, 4, 5, 6)) # Prints "(7, 16, 25, 34)"
print(Vector4i(10, 20, 30, 40) - Vector4i(3, 4, 5, 6)) # Prints (7, 16, 25, 34)
[/codeblock]
</description>
</operator>
@ -276,7 +276,7 @@
<description>
Divides each component of the [Vector4i] by the components of the given [Vector4i].
[codeblock]
print(Vector4i(10, 20, 30, 40) / Vector4i(2, 5, 3, 4)) # Prints "(5, 4, 10, 10)"
print(Vector4i(10, 20, 30, 40) / Vector4i(2, 5, 3, 4)) # Prints (5, 4, 10, 10)
[/codeblock]
</description>
</operator>
@ -287,7 +287,7 @@
Divides each component of the [Vector4i] by the given [float].
Returns a Vector4 value due to floating-point operations.
[codeblock]
print(Vector4i(10, 20, 30, 40) / 2 # Prints "(5, 10, 15, 20)"
print(Vector4i(10, 20, 30, 40) / 2 # Prints (5.0, 10.0, 15.0, 20.0)
[/codeblock]
</description>
</operator>