Operator UnaryNegation
UnaryNegation(Vector3)
Reverses the direction of a given vector.
Declaration
public static Vector3 operator -(Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector to negate. |
Returns
Type | Description |
---|---|
Vector3 | A vector facing in the opposite direction. |