Mercurial > games > semicongine
diff examples/alotof_triangles.nim @ 58:8287a91e5d56
did: refactor Matrix names
author | Sam <sam@basx.dev> |
---|---|
date | Fri, 20 Jan 2023 16:36:52 +0700 |
parents | 547f3a374271 |
children | d7d9420ba675 |
line wrap: on
line diff
--- a/examples/alotof_triangles.nim Fri Jan 20 16:13:32 2023 +0700 +++ b/examples/alotof_triangles.nim Fri Jan 20 16:36:52 2023 +0700 @@ -16,7 +16,7 @@ proc globalUpdate(engine: var Engine, dt: float32) = discard -proc randomtransform(): Mat33[float32] = +proc randomtransform(): TMat33[float32] = let randomscale = scale2d(float32(rand(1.0) + 0.5), float32(rand(1.0) + 0.5)) let randomrotate = rotate2d(float32(rand(2 * PI))) let randomtranslate = translate2d(float32(rand(1.6) - 0.8), float32(rand(1.6) - 0.8))