Float16 module

matrix3_float16

procedureSource

Converts a Math.Matrix3 to half precision, element by element.

Example↗
#import "Math";
m := Matrix3_Identity;
h := matrix3_float16(m);
assert(cast(u16) h._11 == 0x3c00 && cast(u16) h._12 == 0);
assert(matrix3_float32(h)._22 == 1.0);
matrix3_float16 :: (s: Matrix3) -> Matrix3_Float16

Parameters

Returns

See also