From e26f0906f229f237ad22d5b1986c1669b354b791 Mon Sep 17 00:00:00 2001 From: VolTer Date: Sat, 24 Sep 2022 14:20:06 +0200 Subject: Implement snappedi, snappedf, and Vector[2/3/4]i.snapped --- doc/classes/Vector2i.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc/classes/Vector2i.xml') 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 @@ - 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. + + + + + + + Returns a new vector with each component snapped to the closest multiple of the corresponding component in [param step]. -- cgit v1.2.3