summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorRobert Persson <r.k.persson@gmail.com>2013-10-02 10:24:22 +0200
committerRobert Persson <r.k.persson@gmail.com>2013-10-02 10:24:22 +0200
commitace919a0cdf8c036ed4f9da42d4afe399a4296e8 (patch)
tree7c18dc5dfb0219619ff1c28e3f5653493e4dff85 /lib
parenta943905d6cb705d5e5ab18e96c880aa7b42128a1 (diff)
downloadNim-ace919a0cdf8c036ed4f9da42d4afe399a4296e8.tar.gz
Fixed small typobug in basic 3d
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/basic3d.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/basic3d.nim b/lib/pure/basic3d.nim
index fda07918f..540d53fd9 100644
--- a/lib/pure/basic3d.nim
+++ b/lib/pure/basic3d.nim
@@ -1001,7 +1001,7 @@ proc scale*(p:var TPoint3d,fac:float) {.inline.}=
 proc scale*(p:var TPoint3d,fac:float,org:TPoint3d){.inline.}=
   ## Scales the point in place `fac` times with `org` as origin.
   p.x=(p.x - org.x) * fac + org.x
-  p.y=(p.x - org.y) * fac + org.y
+  p.y=(p.y - org.y) * fac + org.y
   p.z=(p.z - org.z) * fac + org.z
 
 proc stretch*(p:var TPoint3d,facx,facy,facz:float){.inline.}=