diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-09-26 16:21:14 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-09-26 19:26:39 +0200 |
commit | 8e845cc79fb661025ed8de4b85da72eba38bea67 (patch) | |
tree | b86f343280b318ef1722b3db7602cb819de192fd | |
parent | 0ca58120b78b03cee7d4b72695c3976c67a5bacd (diff) | |
download | Nim-8e845cc79fb661025ed8de4b85da72eba38bea67.tar.gz |
docgen fixes for basic3d
-rw-r--r-- | lib/pure/basic3d.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/pure/basic3d.nim b/lib/pure/basic3d.nim index 424c191f8..f7a9c237c 100644 --- a/lib/pure/basic3d.nim +++ b/lib/pure/basic3d.nim @@ -117,7 +117,6 @@ proc safeArccos(v:float):float= return arccos(clamp(v,-1.0,1.0)) template makeBinOpVector(s:expr)= - ## implements binary operators + , - , * and / for vectors proc s*(a,b:Vector3d):Vector3d {.inline,noInit.} = vector3d(s(a.x,b.x),s(a.y,b.y),s(a.z,b.z)) proc s*(a:Vector3d,b:float):Vector3d {.inline,noInit.} = @@ -126,11 +125,10 @@ template makeBinOpVector(s:expr)= vector3d(s(a,b.x),s(a,b.y),s(a,b.z)) template makeBinOpAssignVector(s:expr)= - ## implements inplace binary operators += , -= , /= and *= for vectors proc s*(a:var Vector3d,b:Vector3d) {.inline.} = - s(a.x,b.x) ; s(a.y,b.y) ; s(a.z,b.z) + s(a.x,b.x); s(a.y,b.y); s(a.z,b.z) proc s*(a:var Vector3d,b:float) {.inline.} = - s(a.x,b) ; s(a.y,b) ; s(a.z,b) + s(a.x,b); s(a.y,b); s(a.z,b) |