Rediger

Del via


Vector2.Multiply Operator

Definition

Performs a multiplication operation on a vector.

Overloads

Multiply(Vector2, Vector2)

Returns a new vector whose values are the product of each pair of elements in two specified vectors.

Multiply(Vector2, Single)

Multiples the specified vector by the specified scalar value.

Multiply(Single, Vector2)

Multiples the scalar value by the specified vector.

Multiply(Vector2, Vector2)

Source:
Vector2.cs
Source:
Vector2.cs
Source:
Vector2.cs

Returns a new vector whose values are the product of each pair of elements in two specified vectors.

public:
 static System::Numerics::Vector2 operator *(System::Numerics::Vector2 left, System::Numerics::Vector2 right);
public static System.Numerics.Vector2 operator * (System.Numerics.Vector2 left, System.Numerics.Vector2 right);
static member ( * ) : System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Operator * (left As Vector2, right As Vector2) As Vector2

Parameters

left
Vector2

The first vector.

right
Vector2

The second vector.

Returns

The element-wise product vector.

Remarks

The Multiply method defines the multiplication operation for Vector2 objects.

Applies to

Multiply(Vector2, Single)

Source:
Vector2.cs
Source:
Vector2.cs
Source:
Vector2.cs

Multiples the specified vector by the specified scalar value.

public:
 static System::Numerics::Vector2 operator *(System::Numerics::Vector2 left, float right);
public static System.Numerics.Vector2 operator * (System.Numerics.Vector2 left, float right);
static member ( * ) : System.Numerics.Vector2 * single -> System.Numerics.Vector2
Public Shared Operator * (left As Vector2, right As Single) As Vector2

Parameters

left
Vector2

The vector.

right
Single

The scalar value.

Returns

The scaled vector.

Remarks

The Multiply method defines the multiplication operation for Vector2 objects.

Applies to

Multiply(Single, Vector2)

Source:
Vector2.cs
Source:
Vector2.cs
Source:
Vector2.cs

Multiples the scalar value by the specified vector.

public:
 static System::Numerics::Vector2 operator *(float left, System::Numerics::Vector2 right);
public static System.Numerics.Vector2 operator * (float left, System.Numerics.Vector2 right);
static member ( * ) : single * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Operator * (left As Single, right As Vector2) As Vector2

Parameters

left
Single

The vector.

right
Vector2

The scalar value.

Returns

The scaled vector.

Remarks

The Multiply method defines the multiplication operation for Vector2 objects.

Applies to