[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.op_Multiply

operator * Operator

operator *(float, Vector2)

Scales a vector by the given value.

Declaration
public static Vector2 operator *(float scale, Vector2 value)
Public Shared Operator *(scale As Single, value As Vector2) As Vector2
Parameters
Type Name Description
float scale

The amount by which to scale the vector.

Vector2 value

The vector to scale.

Returns
Type Description
Vector2

The scaled vector.

operator *(Vector2, float)

Scales a vector by the given value.

Declaration
public static Vector2 operator *(Vector2 value, float scale)
Public Shared Operator *(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.

operator *(Vector2, Vector2)

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

Declaration
public static Vector2 operator *(Vector2 left, Vector2 right)
Public Shared Operator *(left As Vector2, right As Vector2) As Vector2
Parameters
Type Name Description
Vector2 left

The first vector to multiply.

Vector2 right

The second vector to multiply.

Returns
Type Description
Vector2

The multiplication of the two vectors.