[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.NegateRef

NegateRef Method

NegateRef(ref Vector2)

Reverses the direction of the vector.

Declaration
public static void NegateRef(ref Vector2 value)
Parameters
Type Name Description
Vector2 value

The vector to negate.

NegateRef(out Vector2, ref Vector2)

Reverses the direction of a given vector.

Declaration
public static void NegateRef(out Vector2 result, ref Vector2 value)
Parameters
Type Name Description
Vector2 result

When the method completes, contains a vector facing in the opposite direction.

Vector2 value

The vector to negate.