f
This commit is contained in:
parent
7cf35e0945
commit
fa23c49e02
1 changed files with 1 additions and 3 deletions
|
@ -17,9 +17,7 @@ type
|
||||||
values*: array[9, float32]
|
values*: array[9, float32]
|
||||||
|
|
||||||
proc matrix3*(): Matrix3 =
|
proc matrix3*(): Matrix3 =
|
||||||
result.values[0] = 1
|
cast[Matrix3](mat3())
|
||||||
result.values[4] = 1
|
|
||||||
result.values[8] = 1
|
|
||||||
|
|
||||||
proc mul*(a, b: Matrix3): Matrix3 =
|
proc mul*(a, b: Matrix3): Matrix3 =
|
||||||
cast[Matrix3](cast[Mat3](a) * cast[Mat3](b))
|
cast[Matrix3](cast[Mat3](a) * cast[Mat3](b))
|
||||||
|
|
Loading…
Reference in a new issue