Modifica

Condividi tramite


VectorExtensions.Mul Method

Definition

Overloads

Mul(Vector2, Vector2)

Multiple 2D vector components together to returned a new scaled vector.

Mul(Vector3, Vector3)

Multiple 3D vector components together to returned a new scaled vector.

Mul(Vector2, Vector2)

Multiple 2D vector components together to returned a new scaled vector.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector2 Mul(UnityEngine::Vector2 value, UnityEngine::Vector2 scale);
public static UnityEngine.Vector2 Mul (this UnityEngine.Vector2 value, UnityEngine.Vector2 scale);
static member Mul : UnityEngine.Vector2 * UnityEngine.Vector2 -> UnityEngine.Vector2
<Extension()>
Public Function Mul (value As Vector2, scale As Vector2) As Vector2

Parameters

value
UnityEngine.Vector2

The 2D vector to be scaled.

scale
UnityEngine.Vector2

The 2D vector used to scale the value.

Returns

UnityEngine.Vector2

A new 3D vector containing the product or scaled components.

Applies to

Mul(Vector3, Vector3)

Multiple 3D vector components together to returned a new scaled vector.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector3 Mul(UnityEngine::Vector3 value, UnityEngine::Vector3 scale);
public static UnityEngine.Vector3 Mul (this UnityEngine.Vector3 value, UnityEngine.Vector3 scale);
static member Mul : UnityEngine.Vector3 * UnityEngine.Vector3 -> UnityEngine.Vector3
<Extension()>
Public Function Mul (value As Vector3, scale As Vector3) As Vector3

Parameters

value
UnityEngine.Vector3

The 3D vector to be scaled.

scale
UnityEngine.Vector3

The 3D vector used to scale the value.

Returns

UnityEngine.Vector3

A new 3D vector containing the product or scaled components.

Applies to