[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.MultiplyRef

MultiplyRef Method

MultiplyRef(out Vector2, ref Vector2, float)

Scales a vector by the given value.

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

When the method completes, contains the scaled vector.

Vector2 value

The vector to scale.

float scale

The amount by which to scale the vector.

MultiplyRef(out Vector2, ref Vector2, ref Vector2)

Modulates a vector with another by performing component-wise multiplication.

Declaration
public static void MultiplyRef(out Vector2 result, ref Vector2 left, ref Vector2 right)
Parameters
Type Name Description
Vector2 result

When the method completes, contains the modulated vector.

Vector2 left

The first vector to modulate.

Vector2 right

The second vector to modulate.