src/Map.cpp
bool IsInRect (float x, float y, const float bounds_ltrb[4])
{
    return ((bounds_ltrb[0] <= x) && (x < bounds_ltrb[2]) &&
            (bounds_ltrb[3] <= y) && (y < bounds_ltrb[1]));
}
/// Tests if x/y lies within the rect, given as a float[4] array
Tests if x/y lies within the rect, given as a float[4] array
Tests if x / y lies within the rect given as a float [ 4 ] array
bool IsInRect (float x, float y, const float bounds_ltrb[4])
{
    return ((bounds_ltrb[0] <= x) && (x < bounds_ltrb[2]) &&
            (bounds_ltrb[3] <= y) && (y < bounds_ltrb[1]));
}
bool IsInRect ( float x , float y , const float bounds_ltrb [ 4 ] ) { return ( ( bounds_ltrb [ 0 ] <= x ) && ( x < bounds_ltrb [ 2 ] ) && ( bounds_ltrb [ 3 ] <= y ) && ( y < bounds_ltrb [ 1 ] ) ) ; }
Tests if x/y lies within the rect, given as a float[4] array
Tests if x / y lies within the rect given as a float [ 4 ] array