Safe Haskell | None |
---|---|
Language | Haskell98 |
SFML.Graphics.Rect
Documentation
data FloatRect
Utility class for manipulating rectangles.
data IntRect
Utility class for manipulating rectangles.
class Rect a where
Methods
Arguments
:: a | First rectangle to test |
-> a | Second rectangle to test |
-> Maybe a | Overlapping rect |
Check intersection between two rectangles.
Arguments
:: Float | X coordinate of the point to test |
-> Float | Y coordinate of the point to test |
-> FloatRect | Rectangle to test |
-> Bool |
Check if a point is inside a rectangle's area.