Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

SQRT_TABLE

Constant SQRT_TABLE 

Source
pub const SQRT_TABLE: [u16; 514];
Expand description

round(sqrt(index << 15)): the Q12 square root of a Q24 value sampled every 2^15, one entry past the top so the interpolation of an exact 2^24 (the identity rotation) has a neighbour. The omitted quaternion component is at least one half, so the argument stays far from the steep start of the curve and one linear step is exact to well under a Q12 unit.