Mercurial > games > semicongine
comparison semicongine/core/matrix.nim @ 1420:6f81a41603d9
did: start working on big restructuring
author | sam <sam@basx.dev> |
---|---|
date | Thu, 09 Jan 2025 01:00:58 +0700 |
parents | fe9a8922333c |
children |
comparison
equal
deleted
inserted
replaced
1419:b411735768fd | 1420:6f81a41603d9 |
---|---|
543 0'f32, | 543 0'f32, |
544 1'f32, | 544 1'f32, |
545 ] | 545 ] |
546 ) | 546 ) |
547 | 547 |
548 func asMat3(m: Mat4): auto = | 548 func asMat3*(m: Mat4): auto = |
549 Mat3( | 549 Mat3( |
550 data: | 550 data: |
551 [m[0, 0], m[0, 1], m[0, 2], m[1, 0], m[1, 1], m[1, 2], m[2, 0], m[2, 1], m[2, 2]] | 551 [m[0, 0], m[0, 1], m[0, 2], m[1, 0], m[1, 1], m[1, 2], m[2, 0], m[2, 1], m[2, 2]] |
552 ) | 552 ) |
553 | 553 |