diff options
author | VolTer <mew.pur.pur@abv.bg> | 2022-09-24 14:20:06 +0200 |
---|---|---|
committer | VolTer <mew.pur.pur@abv.bg> | 2022-11-19 06:18:55 +0100 |
commit | e26f0906f229f237ad22d5b1986c1669b354b791 (patch) | |
tree | 81736e67b8393ef0f9fadce2eb29905c25125f32 /doc/classes/Vector2i.xml | |
parent | a1bc636098c91ed47a8d9a23e07a4c85b64c1884 (diff) | |
download | redot-engine-e26f0906f229f237ad22d5b1986c1669b354b791.tar.gz |
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
Diffstat (limited to 'doc/classes/Vector2i.xml')
-rw-r--r-- | doc/classes/Vector2i.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/classes/Vector2i.xml b/doc/classes/Vector2i.xml index eab880e57f..cd729d57fb 100644 --- a/doc/classes/Vector2i.xml +++ b/doc/classes/Vector2i.xml @@ -92,7 +92,14 @@ <method name="sign" qualifiers="const"> <return type="Vector2i" /> <description> - Returns a new vector with each component set to one or negative one, depending on the signs of the components, or zero if the component is zero, by calling [method @GlobalScope.sign] on each component. + Returns a new vector with each component set to [code]1[/code] if it's positive, [code]-1[/code] if it's negative, and [code]0[/code] if it's zero. The result is identical to calling [method @GlobalScope.sign] on each component. + </description> + </method> + <method name="snapped" qualifiers="const"> + <return type="Vector2i" /> + <param index="0" name="step" type="Vector2i" /> + <description> + Returns a new vector with each component snapped to the closest multiple of the corresponding component in [param step]. </description> </method> </methods> |