Added missing header comments.

This commit is contained in:
2021-08-29 10:07:42 -07:00
parent 01c26b9e16
commit 64a2dd5773
29 changed files with 184 additions and 73 deletions

View File

@ -10,14 +10,20 @@
#include "sphere.h"
#include "../input/input.h"
/**
* Perform a test against a point and an AABB.
*
* @param pointX Point X coordinate.
* @param pointY Point Y coordinate.
* @param x Box X coordinate.
* @param y Box Y coordinate.
* @param width Box width.
* @param height Box height.
* @param hit Pointer to hit information to store result in, or NULL for none.
* @return True if a hit occured, otherwise false.
*/
bool aabbPoint2D(
float pointX, float pointY,
float x, float y, float width, float height,
aabbpointhit2d_t *hit
);
bool aabbVector2D(
float x, float y, float vx, float vy,
float bx, float by, float width, float height,
aabbvectorhit2d_t *vector
);