Skip to content

Commit

Permalink
add matrix4::ortho test
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Nov 7, 2024
1 parent 2c11b3b commit d40bcce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/testmatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,14 @@ namespace
assert(m.c == vec4<float>(0,0,2,0));
assert(m.d == vec4<float>(-3,-3,3,1));
}
{
matrix4 m;
m.ortho(-1,1,-1,1,-1,1);
assert(m.a == vec4(1,0,0,0));
assert(m.b == vec4(0,1,0,0));
assert(m.c == vec4(0,0,-1,0));
assert(m.d == vec4(0,0,0,1));
}
}

void test_matrix4_transformnormal()
Expand Down

0 comments on commit d40bcce

Please sign in to comment.