From efc74a5e4a912f1f1cadcfe45037891b14084172 Mon Sep 17 00:00:00 2001 From: FeepingCreature Date: Sun, 13 Nov 2022 23:37:47 +0100 Subject: [PATCH] Avoid name collision with bottom type --- src/std/math/matrix.nt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/std/math/matrix.nt b/src/std/math/matrix.nt index d4e6fc66..29676675 100644 --- a/src/std/math/matrix.nt +++ b/src/std/math/matrix.nt @@ -112,10 +112,10 @@ struct mat4x4 { } /// Create an orthogonal projection matrix. - static mat4x4 ortho(float left, float right, float bottom, float top, float near, float far) { - float dx = right - left, dy = top - bottom, dz = far - near; + static mat4x4 ortho(float left, float right, float bottom_, float top, float near, float far) { + float dx = right - left, dy = top - bottom_, dz = far - near; float tx = -(right + left) / dx; - float ty = -(top + bottom) / dy; + float ty = -(top + bottom_) / dy; float tz = -(far + near) / dz; return mat4x4( vec4f(2/dx, 0, 0, tx),