added manyloc test suite; --path now relative to project dir if not absolute
This commit is contained in:
parent
4f09794be9
commit
75b508032b
51 changed files with 9286 additions and 5 deletions
10
tests/manyloc/keineschweine/lib/math_helpers.nim
Normal file
10
tests/manyloc/keineschweine/lib/math_helpers.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import strutils, math
|
||||
|
||||
proc degrees*(rad: float): float =
|
||||
return rad * 180.0 / PI
|
||||
proc radians*(deg: float): float =
|
||||
return deg * PI / 180.0
|
||||
|
||||
## V not math, sue me
|
||||
proc ff*(f: float, precision = 2): string {.inline.} =
|
||||
return formatFloat(f, ffDecimal, precision)
|
||||
Loading…
Add table
Add a link
Reference in a new issue