Float16 module

vector4_float32

procedure · 1 overloadsince 0.31.0Source

Converts a Vector4_Float16 to a Math.Vector4, exactly.

ExampleOpen in playground ↗
#import "Math";
h := vector4_float16(xyzw(0.5, -2, 8, 70000));
v := vector4_float32(h);
assert(v.x == 0.5 && v.y == -2 && v.z == 8);
assert(v.w > 1e30); // 70000 overflowed to infinity in half precision
vector4_float32 :: (v: Vector4_Float16) -> Vector4

Parameters

Returns

See also