Breyta

Deila með


Vector2.Multiply Method

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)

Multiplies a vector by a specified scalar.

Multiply(Single, Vector2)

Multiplies a scalar value by a 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 Multiply(System::Numerics::Vector2 left, System::Numerics::Vector2 right);
public static System.Numerics.Vector2 Multiply (System.Numerics.Vector2 left, System.Numerics.Vector2 right);
static member Multiply : System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Function Multiply (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.

Applies to

Multiply(Vector2, Single)

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

Multiplies a vector by a specified scalar.

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

Parameters

left
Vector2

The vector to multiply.

right
Single

The scalar value.

Returns

The scaled vector.

Applies to

Multiply(Single, Vector2)

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

Multiplies a scalar value by a specified vector.

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

Parameters

left
Single

The scaled value.

right
Vector2

The vector.

Returns

The scaled vector.

Applies to