VEC: rename functions for readability
This commit is contained in:
parent
84bfeb27e0
commit
54d960ad20
@ -14,8 +14,8 @@ import MyPrelude
|
|||||||
inRange :: Square -- ^ the square, defined by x/y dimensions
|
inRange :: Square -- ^ the square, defined by x/y dimensions
|
||||||
-> PT -- ^ Coordinate
|
-> PT -- ^ Coordinate
|
||||||
-> Bool -- ^ result
|
-> Bool -- ^ result
|
||||||
inRange ((xlD, xuD), (ylD, yuD)) p =
|
inRange ((xmin, xmax), (ymin, ymax)) p =
|
||||||
x <= xuD && x >= xlD && y <= yuD && y >= ylD
|
x <= xmax && x >= xmin && y <= ymax && y >= ymin
|
||||||
where
|
where
|
||||||
(x, y) = unp2 p
|
(x, y) = unp2 p
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user