Home > decentraland-ecs > Vector3 > subtractFromFloatsToRef
Subtracts the given floats from the current Vector3 coordinates and set the given vector "result" with this result
Signature:
subtractFromFloatsToRef(x: number, y: number, z: number, result: Vector3): Vector3;
Returns: Vector3
the current Vector3
Parameter | Type | Description |
---|---|---|
x |
number |
defines the x coordinate of the operand |
y |
number |
defines the y coordinate of the operand |
z |
number |
defines the z coordinate of the operand |
result |
Vector3 |
defines the Vector3 object where to store the result |