VEC: simplify type signature of onPT
This commit is contained in:
parent
3d7f2c743a
commit
d2b51b7ad7
@ -143,7 +143,7 @@ sortedY xs =
|
|||||||
|
|
||||||
|
|
||||||
-- |Apply a function on the coordinates of a point.
|
-- |Apply a function on the coordinates of a point.
|
||||||
onPT :: ((Double, Double) -> (Double, Double)) -> PT -> PT
|
onPT :: (Coord -> Coord) -> PT -> PT
|
||||||
onPT f = p2 . f . unp2
|
onPT f = p2 . f . unp2
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user