summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2013-10-05 12:09:14 -0700
committerAndreas Rumpf <rumpf_a@web.de>2013-10-05 12:09:14 -0700
commitcb1a278e001fe2a511e28ed95fdda2f58d0a4795 (patch)
tree07f6b3618183a5ae52215a83a041a9687b13eed9
parentb700e0d2f8a8c778b319b00d8ad1e724083b0eda (diff)
parentace919a0cdf8c036ed4f9da42d4afe399a4296e8 (diff)
downloadNim-cb1a278e001fe2a511e28ed95fdda2f58d0a4795.tar.gz
Merge pull request #613 from ventor3000/basic_geom
Fixed small typobug in basic 3d
-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.}=