mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
math style
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
pub const F32x4 = @Vector(4, f32);
|
|
||||||
|
|
||||||
/// Matrix type
|
/// Matrix type
|
||||||
pub const Mat = [4]F32x4;
|
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 {
|
pub fn ortho2d(left: f32, right: f32, bottom: f32, top: f32) Mat {
|
||||||
const w = right - left;
|
const w = right - left;
|
||||||
const h = top - bottom;
|
const h = top - bottom;
|
||||||
|
Reference in New Issue
Block a user