Operator Multiply
Multiply(Vector2, Single)
Scales a vector by the given value.
Declaration
public static Vector2 operator *(Vector2 vector, float scale)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | vector | The vector to scale. |
| System.Single | scale | The amount by which to scale the vector. |
Returns
| Type | Description |
|---|---|
| Vector2 | The scaled vector. |
Multiply(Single, Vector2)
Scales a vector by the given value.
Declaration
public static Vector2 operator *(float scale, Vector2 vector)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | scale | The amount by which to scale the vector. |
| Vector2 | vector | The vector to scale. |
Returns
| Type | Description |
|---|---|
| Vector2 | The scaled vector. |