Skip to content

Commit

Permalink
Fixed issue #99 wedge should closed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyrosenbluth committed Aug 30, 2013
1 parent 29bd416 commit 6993de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Diagrams/TwoD/Arc.hs
Expand Up @@ -132,7 +132,7 @@ arc' r start end = trailLike $ scale (abs r) ts `at` (rotate start $ p2 (abs r,0
-- | Create a circular wedge of the given radius, beginning at the
-- first angle and extending counterclockwise to the second.
wedge :: (Angle a, TrailLike p, V p ~ R2) => Double -> a -> a -> p
wedge r a1 a2 = trailLike . (`at` origin) . wrapLine
wedge r a1 a2 = trailLike . (`at` origin) . glueTrail . wrapLine
$ fromOffsets [r *^ e a1]
<> arc a1 a2 # scale r
<> fromOffsets [r *^ negateV (e a2)]

0 comments on commit 6993de0

Please sign in to comment.