vecmath: update to zig 0.17.0, remove x8 transpose methods (for now)

This commit is contained in:
2026-10-06 21:27:34 +02:00
parent 99b8cf1d8e
commit c5c6c61251
24 changed files with 75 additions and 532 deletions

View File

@@ -31,7 +31,7 @@ pub const Vector4 = extern struct {
}
pub inline fn initArray(array: Array) Vector4 {
return @bitCast(array);
return @as(*const Vector4, @ptrCast(&array)).*;
}
// --- CONVERSION ----------------------------------------------------------
@@ -41,7 +41,7 @@ pub const Vector4 = extern struct {
}
pub inline fn asArray(self: Vector4) Array {
return @bitCast(self);
return @as(*const Array, @ptrCast(self)).*;
}
pub inline fn dropW(self: Vector4) vm.Vector3 {