Edit

Share via


VectorExtensions.Div Method

Definition

Overloads

Div(Vector2, Vector2)

Divide 2D vector components by the given divisor components.

Div(Vector3, Vector3)

Divide 3D vector components by the given divisor components.

Div(Vector2, Vector2)

Divide 2D vector components by the given divisor components.

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

Parameters

value
UnityEngine.Vector2

The 2D vector containing the divided components.

scale
UnityEngine.Vector2

Returns

UnityEngine.Vector2

A new 2D vector containing the quotient components.

Applies to

Div(Vector3, Vector3)

Divide 3D vector components by the given divisor components.

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

Parameters

value
UnityEngine.Vector3

The 3D vector containing the divided components.

scale
UnityEngine.Vector3

Returns

UnityEngine.Vector3

A new 3D vector containing the quotient components.

Applies to