pointWithin has moved to the core

This commit is contained in:
Joachim Breitner 2008-10-08 15:42:45 +00:00
parent 15df01705f
commit 521bb48ad9

View File

@ -90,12 +90,6 @@ moveWithin now lower upper =
then upper
else now
pointWithin :: Position -> Position -> Rectangle -> Bool
pointWithin x y r = x >= rect_x r &&
x < rect_x r + fi (rect_width r) &&
y >= rect_y r &&
y < rect_y r + fi (rect_height r)
fi :: (Num b, Integral a) => a -> b
fi = fromIntegral