pub const fn pack_xy(x: i16, y: i16) -> u32Expand description
Helper: pack two i16 values into one u32 for MTC2/CTC2 of XY-pair registers (V0 X/Y, SXY slots, rotation matrix rows, …).
The low 16 bits hold x, the high 16 bits hold y.
pub const fn pack_xy(x: i16, y: i16) -> u32Helper: pack two i16 values into one u32 for MTC2/CTC2 of XY-pair registers (V0 X/Y, SXY slots, rotation matrix rows, …).
The low 16 bits hold x, the high 16 bits hold y.