Allow clamping vectors and colors

This commit is contained in:
Aaron Franke
2021-02-01 00:10:52 -05:00
parent 94bc0bd919
commit 2e13e3ed4a
19 changed files with 190 additions and 0 deletions

View File

@ -64,6 +64,17 @@
Returns the ratio of [member x] to [member y].
</description>
</method>
<method name="clamp" qualifiers="const">
<return type="Vector2i">
</return>
<argument index="0" name="min" type="Vector2i">
</argument>
<argument index="1" name="max" type="Vector2i">
</argument>
<description>
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.
</description>
</method>
<method name="operator !=" qualifiers="operator">
<return type="bool">
</return>