Home > decentraland-ecs > Vector3 > scaleToRef
Multiplies the current Vector3 coordinates by the float "scale" and stores the result in the given vector "result" coordinates
Signature:
scaleToRef(scale: number, result: Vector3): Vector3;
Returns: Vector3
the current Vector3
Parameter | Type | Description |
---|---|---|
scale |
number |
defines the multiplier factor |
result |
Vector3 |
defines the Vector3 object where to store the result |