Float16 module

vector3_float16

procedure · 1 overloadSource

Converts a Math.Vector3 to half precision, rounding each component as float_to_half_fast3 does.

ExampleOpen in playground ↗
#import "Math";
h := vector3_float16(xyz(1, 2, 3));
v := vector3_float32(h);
assert(v.x == 1 && v.y == 2 && v.z == 3);
vector3_float16 :: (v: Vector3) -> Vector3_Float16

Parameters

Returns

See also