rename intersect_(f)rect to overlap_(f)rect and add simplified functions with the old names
This commit is contained in:
@ -109,9 +109,14 @@ _Alignas(16)
|
||||
} t_frect;
|
||||
|
||||
|
||||
TWN_API bool intersect_rect(const t_rect *a, const t_rect *b, t_rect *result);
|
||||
/* calculates the overlap of two rectangles and places it in result. */
|
||||
/* returns true if the rectangles are indeed intersecting. */
|
||||
TWN_API bool overlap_rect(const t_rect *a, const t_rect *b, t_rect *result);
|
||||
TWN_API bool overlap_frect(const t_frect *a, const t_frect *b, t_frect *result);
|
||||
|
||||
TWN_API bool intersect_frect(const t_frect *a, const t_frect *b, t_frect *result);
|
||||
/* returns true if two triangles are intersecting */
|
||||
TWN_API bool intersect_rect(const t_rect *a, const t_rect *b);
|
||||
TWN_API bool intersect_frect(const t_frect *a, const t_frect *b);
|
||||
|
||||
/* TODO: generics and specials (see m_to_fvec2() for an example)*/
|
||||
TWN_API t_frect to_frect(t_rect rect);
|
||||
|
Reference in New Issue
Block a user