mirror of https://github.com/adamdruppe/arsd.git
thanks to MuriloMir for finding bug
This commit is contained in:
parent
5967b959b4
commit
6ab8c638a1
2
color.d
2
color.d
|
@ -1512,7 +1512,7 @@ struct Rectangle {
|
||||||
|
|
||||||
/// ditto
|
/// ditto
|
||||||
bool contains(in Point p) {
|
bool contains(in Point p) {
|
||||||
return (p.x >= left && p.y < right && p.y >= top && p.y < bottom);
|
return (p.x >= left && p.x < right && p.y >= top && p.y < bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true of the two rectangles at any point overlap
|
/// Returns true of the two rectangles at any point overlap
|
||||||
|
|
Loading…
Reference in New Issue