Skip to content

Commit

Permalink
[types] bugfix cog polygon generator
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 27, 2015
1 parent 9b538ed commit d3d12b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geom-types/src/polygon.org
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
[radius teeth profile]
(-> (thi.ng.geom.types.Circle2. (vec2) radius)
(g/vertices (* teeth (count profile)))
(->> (cycle profile)
(mapv (fn [p v] (g/* v p)))
(->> (mapv (fn [p v] (g/* v p)) (cycle profile))
(thi.ng.geom.types.Polygon2.))))
#+END_SRC

Expand Down

0 comments on commit d3d12b6

Please sign in to comment.