Skip to content

Module: maths

Synopsis

#include <core/maths.h>

Basic maths.

Functions

maths_is_boxed

Check if the coordinates px, py are withing the bounding rectangle specified by x, y, w and h.

bool
maths_is_boxed(int x, int y, unsigned int w, unsigned int h, int px, int py);