Skip to content

five-on-it / packages/protocol/src/quantize / atRest

Function: atRest() ​

atRest(vx, vz): boolean

Defined in: packages/protocol/src/quantize.ts:30

Whether a velocity across the ground is at rest (REST_STEPS), as its quantized steps say.

Parameters ​

vx ​

number

vz ​

number

Returns ​

boolean