mach: math lib adding const qualifier to set_2d_matrix
This commit is contained in:
parent
6af918528c
commit
6c60f03386
1 changed files with 1 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ pub const mat = struct {
|
||||||
} else @compileError("Expected matrix, found '" ++ @typeName(T) ++ "'");
|
} else @compileError("Expected matrix, found '" ++ @typeName(T) ++ "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn set_2d_matrix(data: []f32) Mat3x3 {
|
pub inline fn set_2d_matrix(data: []const f32) Mat3x3 {
|
||||||
std.debug.assert(data.len == 9);
|
std.debug.assert(data.len == 9);
|
||||||
return .{
|
return .{
|
||||||
data[0], data[1], data[2], 0,
|
data[0], data[1], data[2], 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue