Remove xmath, remove print dependency

This commit is contained in:
treeform 2018-08-19 10:49:49 -07:00
parent a3a94a148f
commit 1bcd8194c1
6 changed files with 1 additions and 1478 deletions

View file

@ -2,7 +2,6 @@ import math
import strutils
import random
export math
import print
proc clamp*(n, min, max: float): float =

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
switch("path", "$projectDir/../src")

View file

@ -1,61 +0,0 @@
# nim c -r --verbosity:0 test\xmathtest > test\xmathtest.test.txt; tools\dos2unix test\xmathtest.test.txt; git diff test\xmathtest.test.txt
include vmath/xmath
randomize(1234)
block:
echo "--- basic vector xvec2"
var a = xvec2(1, 2)
var b = xvec2(7, 6)
var n = 13.7
echo a + b
echo a - b
echo a * n
echo a / n
a += b
echo a
a -= b
echo a
a *= n
echo a
a /= n
echo a
block:
echo "--- basic vector xvec3"
var a = xvec3(1, 2, 3)
var b = xvec3(7, 6, 5)
var n = 13.7
echo a + b
echo a - b
echo a * n
echo a / n
a += b
echo a
a -= b
echo a
a *= n
echo a
a /= n
echo a
block:
echo "--- basic vector xvec4"
var a = xvec4(1, 2, 3, 4)
var b = xvec4(7, 6, 5, 4)
var n = 13.7
echo a + b
echo a - b
echo a * n
echo a / n
a += b
echo a
a -= b
echo a
a *= n
echo a
a /= n
echo a

View file

@ -1,27 +0,0 @@
--- basic vector xvec2
(8.0000, 8.0000)
(-6.0000, -4.0000)
(13.7000, 27.4000)
(0.0730, 0.1460)
(8.0000, 8.0000)
(1.0000, 2.0000)
(13.7000, 27.4000)
(1.0000, 2.0000)
--- basic vector xvec3
(8.00000000, 8.00000000, 8.00000000)
(-6.00000000, -4.00000000, -2.00000000)
(13.69999695, 27.39999390, 41.09999084)
(0.07299805, 0.14598083, 0.21897888)
(8.00000000, 8.00000000, 8.00000000)
(1.00000000, 2.00000000, 3.00000000)
(13.69999695, 27.39999390, 41.09999084)
(1.00000000, 2.00000000, 3.00000000)
--- basic vector xvec4
(8.00000000, 8.00000000, 8.00000000, 8.00000000)
(-6.00000000, -4.00000000, -2.00000000, 0.00000000)
(13.69999695, 27.39999390, 41.09999084, 54.79998779)
(0.07299805, 0.14598083, 0.21897888, 0.29197693)
(8.00000000, 8.00000000, 8.00000000, 8.00000000)
(1.00000000, 2.00000000, 3.00000000, 4.00000000)
(13.69999695, 27.39999390, 41.09999084, 54.79998779)
(1.00000000, 2.00000000, 3.00000000, 4.00000000)

View file

@ -1,6 +1,6 @@
# Package
version = "0.2.0"
version = "0.2.1"
author = "treeform"
description = "Math vector library for graphical things."
license = "MIT"