advent-of-dreamcast/cartesian.c
2024-12-08 01:16:05 -06:00

14 lines
211 B
C

#include <stdbool.h>
#include "cartesian.h"
bool cartesian_inside(int width, int height,
int x, int y)
{
return
x >= 0 &&
y >= 0 &&
x < width &&
y < height ;
}