Method Abs
Abs(Vector2)
Component-wise absolute value
Declaration
public static Vector2 Abs(this Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | v | Input vector |
Returns
Type | Description |
---|---|
Vector2 | Component-wise absolute value of the input vector |
Abs(Vector3)
Component-wise absolute value
Declaration
public static Vector3 Abs(this Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | v | Input vector |
Returns
Type | Description |
---|---|
Vector3 | Component-wise absolute value of the input vector |