Allow clamping vectors and colors
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user