Mercurial > games > semicongine
comparison src/zamikongine/math/vector.nim @ 38:c3c963e7c1a6
did: tons of stuff, input, refactoring, fix some errors, some template improvment, sorry for super-commit
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 18 Jan 2023 09:52:03 +0700 |
parents | beb86492b178 |
children |
comparison
equal
deleted
inserted
replaced
37:6859bcfabc62 | 38:c3c963e7c1a6 |
---|---|
2 import std/math | 2 import std/math |
3 import std/strutils | 3 import std/strutils |
4 import std/macros | 4 import std/macros |
5 import std/typetraits | 5 import std/typetraits |
6 import std/tables | 6 import std/tables |
7 | |
8 export math | |
7 | 9 |
8 | 10 |
9 type | 11 type |
10 Vec2*[T: SomeNumber] = array[2, T] | 12 Vec2*[T: SomeNumber] = array[2, T] |
11 Vec3*[T: SomeNumber] = array[3, T] | 13 Vec3*[T: SomeNumber] = array[3, T] |