[]
        
(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)
Public Shared Function Multiply(value As Vector2, scale As Single) As Vector2
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)
Public Shared Function Multiply(left As Vector2, right As Vector2) As Vector2
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.