Class Vector2_CB_GD_Extensions
- Namespace
- Godot
- Assembly
- com.cobilas.godot.utility.dll
Extension to the Godot.Vector2 struct.
public static class Vector2_CB_GD_Extensions
- Inheritance
-
Vector2_CB_GD_Extensions
- Inherited Members
Methods
Neg(Vector2, bool, bool)
Inverts the axes of a vector.
public static Vector2 Neg(this Vector2 v, bool negX = true, bool negY = true)
Parameters
v
Vector2The vector that will be inverted.
negX
boolAllows you to invert the X axis.
negY
boolAllows you to invert the Y axis.
Returns
- Vector2
Returns the already transformed vector.