Click or drag to resize

Vector2Sign Method

Returns a vector with each component set to one or negative one, depending on the signs of this vector's components, or zero if the component is zero, by calling Sign(Single) on each component.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 Sign()

Return Value

Type: Vector2
A vector with all components as either `1`, `-1`, or `0`.
See Also