12#ifndef BJ_GEOMETRY_2D_H
13#define BJ_GEOMETRY_2D_H
General-purpose definitions for Banjo API.
uint32_t bj_bool
Boolean type used throughout the Banjo API.
bj_bool bj_circle_hits_segment_2d(struct bj_vec2 c, bj_real r, struct bj_vec2 l0, struct bj_vec2 l1)
Tell whether a circle overlaps a line segment.
bj_bool bj_check_circle_segment_hit(struct bj_vec2 c, bj_real r, struct bj_vec2 l0, struct bj_vec2 l1)
bj_bool bj_check_segments_hit(struct bj_vec2 a0, struct bj_vec2 a1, struct bj_vec2 b0, struct bj_vec2 b1)
bj_bool bj_segment_hits_segment_2d(struct bj_vec2 a0, struct bj_vec2 a1, struct bj_vec2 b0, struct bj_vec2 b1)
Tell whether two line segments cross.
float bj_real
Selected real type for float configuration.
2D vector of bj_real components.
Fixed-size vector types (2D, 3D, 4D) and inline operations.