forked from NotAShelf/rogged
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9d8998707c02e64cf177a6eeb51e399e6a6a6964
10 lines
227 B
C
10 lines
227 B
C
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
// Clamp value between min and max
|
|
int clamp(int value, int min, int max);
|
|
|
|
// Check if coordinates are within map bounds
|
|
int in_bounds(int x, int y, int width, int height);
|
|
|
|
#endif // UTILS_H
|