Skip to content

Commit

Permalink
Avoid name collision with bottom type
Browse files Browse the repository at this point in the history
  • Loading branch information
FeepingCreature committed Nov 13, 2022
1 parent 685e8b8 commit efc74a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/std/math/matrix.nt
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit efc74a5

Please sign in to comment.