Mercurial > games > semicongine
comparison tests/test_vector.nim @ 57:547f3a374271
did: refactor Vector names
author | Sam <sam@basx.dev> |
---|---|
date | Fri, 20 Jan 2023 16:13:32 +0700 |
parents | 617c6dcddbe2 |
children | c57285d292b6 |
comparison
equal
deleted
inserted
replaced
56:94d7eed3f118 | 57:547f3a374271 |
---|---|
1 import random | 1 import random |
2 import math | 2 import math |
3 | 3 |
4 import vector | 4 import semicongine/math/vector |
5 | 5 |
6 | 6 |
7 proc echoInfo(v: Vec) = | 7 proc echoInfo(v: TVec) = |
8 echo v | 8 echo v |
9 echo " Length: ", v.length | 9 echo " Length: ", v.length |
10 echo " Normlized: ", v.normalized | 10 echo " Normlized: ", v.normalized |
11 echo " negated: ", -v | 11 echo " negated: ", -v |
12 | 12 |