[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.Multiply

Multiply Method

Multiply(Vector2, float)

Scales a vector by the given value.

Declaration
public static Vector2 Multiply(Vector2 value, float scale)
Parameters
Type Name Description
Vector2 value

The vector to scale.

float scale

The amount by which to scale the vector.

Returns
Type Description
Vector2

The scaled vector.

Multiply(Vector2, Vector2)

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

Declaration
public static Vector2 Multiply(Vector2 left, Vector2 right)
Parameters
Type Name Description
Vector2 left

The first vector to modulate.

Vector2 right

The second vector to modulate.

Returns
Type Description
Vector2

The modulated vector.