math style

pull/6/head
Mitchell Hashimoto 2022-08-18 11:42:32 -07:00
parent 4dd8924427
commit 1aecfc1061
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
pub const F32x4 = @Vector(4, f32);
/// Matrix type
pub const Mat = [4]F32x4;
pub const F32x4 = @Vector(4, f32);
/// 2D orthographic projection matrix
pub fn ortho2d(left: f32, right: f32, bottom: f32, top: f32) Mat {
const w = right - left;
const h = top - bottom;