comparison src/zamikongine/math/vector.nim @ 499:3f1111f3b9f8

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 c472abfcee57
children
comparison
equal deleted inserted replaced
498:2fa8e418deae 499:3f1111f3b9f8
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]