Networking · function

simMul

Multiply. Exact wherever the result is representable; see §2 of the header.

Explained in Networking and rollback.

function simMul(a: Sim, b: Sim): Sim
import { simMul } from '@driftengine/network';

Parameters

ParameterTypeDescription
aSim
bSim

In depth

The split is at the fixed point, so high is the integer part and low the fractional part scaled — both non-negative for a negative operand too, because Math.floor goes toward negative infinity and the remainder is taken against that.