VectorExtensions.Div Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
A new 3D vector containing the quotient components.