Float16 module

vector2_float16

procedureSource

Converts a Math.Vector2 to half precision.

Example↗
#import "Math";
h := vector2_float16(xy(0.5, -4));
v := vector2_float32(h);
assert(v.x == 0.5 && v.y == -4);
vector2_float16 :: (v: Vector2) -> Vector2_Float16

Parameters

Returns

See also