Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
geometry_2d.h
Go to the documentation of this file.
1
12#ifndef BJ_GEOMETRY_2D_H
13#define BJ_GEOMETRY_2D_H
14
15#include <banjo/api.h>
16#include <banjo/vec.h>
17
18// Return 1 if segments [a0,a1] and [b0,b1] intersect, else 0.
20 bj_vec2 a0,
21 bj_vec2 a1,
22 bj_vec2 b0,
23 bj_vec2 b1
24);
25
27 bj_vec2 c,
28 bj_real r,
29 bj_vec2 l0,
30 bj_vec2 l1
31);
32
33
37
38#endif /* BJ_GEOMETRY_2D_H */
General-purpose definitions for Banjo API.
#define BANJO_EXPORT
Definition api.h:139
uint32_t bj_bool
Boolean type used throughout the Banjo API.
Definition api.h:233
bj_bool bj_check_segments_hit(bj_vec2 a0, bj_vec2 a1, bj_vec2 b0, bj_vec2 b1)
bj_bool bj_check_circle_segment_hit(bj_vec2 c, bj_real r, bj_vec2 l0, bj_vec2 l1)
struct bj_vec2_t bj_vec2
Definition vec.h:30
float bj_real
Selected real type for float configuration.
Definition math.h:51
vector manipulation API