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
32 struct bj_vec2 a0,
33 struct bj_vec2 a1,
34 struct bj_vec2 b0,
35 struct bj_vec2 b1
36);
37
52 struct bj_vec2 c,
53 bj_real r,
54 struct bj_vec2 l0,
55 struct bj_vec2 l1
56);
57
58
62
63#endif /* BJ_GEOMETRY_2D_H */
General-purpose definitions for Banjo API.
#define BANJO_EXPORT
Definition api.h:155
uint32_t bj_bool
Boolean type used throughout the Banjo API.
Definition api.h:249
bj_bool bj_check_circle_segment_hit(struct bj_vec2 c, bj_real r, struct bj_vec2 l0, struct bj_vec2 l1)
Check if a circle intersects with a line segment.
bj_bool bj_check_segments_hit(struct bj_vec2 a0, struct bj_vec2 a1, struct bj_vec2 b0, struct bj_vec2 b1)
Check if two line segments intersect.
float bj_real
Selected real type for float configuration.
Definition math.h:51
struct bj_vec2: 2D vector of bj_real values.
Definition vec.h:26
vector manipulation API