The Tiny HTM Library
|
Data Structures | |
struct | htm_range |
Represents a range of integers. More... | |
Defines | |
#define | HTM_DEG_PER_RAD 57.2957795130823208767981548141 |
Degrees per radian. | |
#define | HTM_RAD_PER_DEG 0.0174532925199432957692369076849 |
Radians per degree. | |
#define | HTM_ARCSEC_PER_DEG 3600.0 |
Arcseconds per degree. | |
Enumerations | |
enum | htm_errcode { HTM_OK = 0, HTM_ENOMEM, HTM_ENULLPTR, HTM_ENANINF, HTM_EZERONORM, HTM_ELAT, HTM_EANG, HTM_EHEMIS, HTM_ELEN, HTM_EDEGEN, HTM_EID, HTM_ELEVEL, HTM_EIO, HTM_EMMAN, HTM_EINV, HTM_ETREE, HTM_NUM_CODES } |
Library error codes. More... | |
Functions | |
HTM_INLINE int | htm_popcount (uint64_t x) |
Counts the number of 1 bits in a 64 bit integer. | |
const char * | htm_errmsg (enum htm_errcode err) |
Returns an error message for the given error code. | |
HTM_INLINE double | htm_angred (double angle_deg) |
Returns the given angle, range-reduced to lie in [0, 360) degrees. | |
HTM_INLINE double | htm_clamp (double x, double min, double max) |
Returns the value of x clamped to [min, max] . |
#define HTM_ARCSEC_PER_DEG 3600.0 |
#define HTM_DEG_PER_RAD 57.2957795130823208767981548141 |
Degrees per radian.
Definition at line 123 of file common.h.
Referenced by htm_sc_angsep(), htm_v3_angsep(), htm_v3_angsepu(), htm_v3_tanrot(), and htm_v3_tosc().
#define HTM_RAD_PER_DEG 0.0174532925199432957692369076849 |
Radians per degree.
Definition at line 126 of file common.h.
Referenced by htm_s2circle_ids(), htm_s2cpoly_ngon(), htm_s2ellipse_init(), htm_s2ellipse_init2(), htm_sc_dist2(), htm_sc_tov3(), htm_tree_s2circle_count(), htm_tree_s2circle_range(), htm_tree_s2circle_scan(), htm_v3_rot(), and htm_v3_tanrot().
enum htm_errcode |
Library error codes.
const char* htm_errmsg | ( | enum htm_errcode | err | ) |