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