Home > decentraland-ecs > Vector4 > scaleToRef
Sets the given vector "result" with the current Vector4 coordinates multiplied by scale (float).
Signature:
scaleToRef(scale: number, result: Vector4): Vector4;
Returns: Vector4
the current Vector4.
Parameter | Type | Description |
---|---|---|
scale |
number |
the number to scale with |
result |
Vector4 |
a vector to store the result in |