mirror of
https://github.com/g-truc/glm.git
synced 2025-04-14 17:13:41 +00:00
Fixed transpose test
This commit is contained in:
parent
bcc40eb6d6
commit
dadf53884e
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ int test_transpose()
|
|||
{
|
||||
glm::mat3x2 m(0, 1, 2, 3, 4, 5);
|
||||
glm::mat2x3 t = glm::transpose(m);
|
||||
Error += t == glm::mat2x3(0, 3, 1, 4, 2, 5) ? 0 : 1;
|
||||
Error += t == glm::mat2x3(0, 2, 4, 1, 3, 5) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -72,13 +72,13 @@ int test_transpose()
|
|||
{
|
||||
glm::mat4x2 m(0, 1, 2, 3, 4, 5, 6, 7);
|
||||
glm::mat2x4 t = glm::transpose(m);
|
||||
Error += t == glm::mat2x4(0, 4, 1, 5, 2, 6, 3, 7) ? 0 : 1;
|
||||
Error += t == glm::mat2x4(0, 2, 4, 6, 1, 3, 5, 7) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
glm::mat4x3 m(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
|
||||
glm::mat3x4 t = glm::transpose(m);
|
||||
Error += t == glm::mat3x4(0, 4, 8, 1, 5, 9, 2, 6, 10, 3, 7, 11) ? 0 : 1;
|
||||
Error += t == glm::mat3x4(0, 3, 6, 9, 1, 4, 7, 10, 2, 5, 8, 11) ? 0 : 1;
|
||||
}
|
||||
|
||||
return Error;
|
||||
|
|
Loading…
Add table
Reference in a new issue