Added missing docs to built-in types float and int
This commit is contained in:
@ -114,12 +114,17 @@
|
|||||||
<return type="Vector4" />
|
<return type="Vector4" />
|
||||||
<param index="0" name="right" type="Vector4" />
|
<param index="0" name="right" type="Vector4" />
|
||||||
<description>
|
<description>
|
||||||
|
Multiplies each component of the [Vector4] by the given [float].
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator *">
|
<operator name="operator *">
|
||||||
<return type="Vector4" />
|
<return type="Vector4" />
|
||||||
<param index="0" name="right" type="Vector4i" />
|
<param index="0" name="right" type="Vector4i" />
|
||||||
<description>
|
<description>
|
||||||
|
Multiplies each component of the [Vector4i] by the given [float]. Returns a [Vector4].
|
||||||
|
[codeblock]
|
||||||
|
print(0.9 * Vector4i(10, 15, 20, -10)) # Prints "(9, 13.5, 18, -9)"
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator *">
|
<operator name="operator *">
|
||||||
@ -140,12 +145,20 @@
|
|||||||
<return type="float" />
|
<return type="float" />
|
||||||
<param index="0" name="right" type="float" />
|
<param index="0" name="right" type="float" />
|
||||||
<description>
|
<description>
|
||||||
|
Raises a [float] to a power of a [float].
|
||||||
|
[codeblock]
|
||||||
|
print(39.0625**0.25) # 2.5
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator **">
|
<operator name="operator **">
|
||||||
<return type="float" />
|
<return type="float" />
|
||||||
<param index="0" name="right" type="int" />
|
<param index="0" name="right" type="int" />
|
||||||
<description>
|
<description>
|
||||||
|
Raises a [float] to a power of an [int]. The result is a [float].
|
||||||
|
[codeblock]
|
||||||
|
print(0.9**3) # 0.729
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator +">
|
<operator name="operator +">
|
||||||
|
|||||||
@ -161,12 +161,14 @@
|
|||||||
<return type="Vector4" />
|
<return type="Vector4" />
|
||||||
<param index="0" name="right" type="Vector4" />
|
<param index="0" name="right" type="Vector4" />
|
||||||
<description>
|
<description>
|
||||||
|
Multiplies each component of the [Vector4] by the given [int].
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator *">
|
<operator name="operator *">
|
||||||
<return type="Vector4i" />
|
<return type="Vector4i" />
|
||||||
<param index="0" name="right" type="Vector4i" />
|
<param index="0" name="right" type="Vector4i" />
|
||||||
<description>
|
<description>
|
||||||
|
Multiplies each component of the [Vector4i] by the given [int].
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator *">
|
<operator name="operator *">
|
||||||
@ -187,12 +189,20 @@
|
|||||||
<return type="float" />
|
<return type="float" />
|
||||||
<param index="0" name="right" type="float" />
|
<param index="0" name="right" type="float" />
|
||||||
<description>
|
<description>
|
||||||
|
Raises an [int] to a power of a [float]. The result is a [float].
|
||||||
|
[codeblock]
|
||||||
|
print(8**0.25) # 1.68179283050743
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator **">
|
<operator name="operator **">
|
||||||
<return type="int" />
|
<return type="int" />
|
||||||
<param index="0" name="right" type="int" />
|
<param index="0" name="right" type="int" />
|
||||||
<description>
|
<description>
|
||||||
|
Raises an [int] to a power of a [int].
|
||||||
|
[codeblock]
|
||||||
|
print(5**5) # 3125
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</operator>
|
</operator>
|
||||||
<operator name="operator +">
|
<operator name="operator +">
|
||||||
|
|||||||
Reference in New Issue
Block a user