Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 879 Bytes

decentraland-ecs.vector3.subtractfromfloatstoref.md

File metadata and controls

23 lines (16 loc) · 879 Bytes

Home > decentraland-ecs > Vector3 > subtractFromFloatsToRef

Vector3.subtractFromFloatsToRef method

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

Parameters

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