vecmath: update to zig 0.17.0, remove x8 transpose methods (for now)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user