Method Divide
Divide(Vector3, Vector3)
Returns a new Vector3 that divides each component of the input value by each component of the scale value.
Declaration
public static Vector3 Divide(this Vector3 value, Vector3 scale)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | value | Input value to scale. |
| Vector3 | scale |
|
Returns
| Type | Description |
|---|---|
| Vector3 | Scaled input value. |
Exceptions
| Type | Condition |
|---|---|
| DivideByZeroException | Thrown if scale parameter has any 0 values. Consider using SafeDivide(Vector3, Vector3). |