math: use extern struct for guaranteed memory layout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-09-08 14:53:18 -07:00
parent 0538698bda
commit 40a1ba0431
3 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ const math = mach.math;
const vec = @import("vec.zig");
pub fn Quat(comptime Scalar: type) type {
return struct {
return extern struct {
v: vec.Vec(4, Scalar),
/// The scalar type of this matrix, e.g. Mat3x3.T == f32