12#ifndef BJ_GEOMETRY_2D_H
13#define 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