include/vecmat/config.h file

Build-time precision, sizes, angle helpers, and the shared-library export macro.

Typedefs

using vm_float32_t = float
using vm_float64_t = double
using vm_float_t = vm_float64_t
using vm_int_t = int8_t

Variables

static const float VM_DEG_TO_RAD_F32
static const float VM_RAD_TO_DEG_F32
static const double VM_DEG_TO_RAD_F64
static const double VM_RAD_TO_DEG_F64
static const vm_float_t VM_DEG_TO_RAD
static const vm_float_t VM_RAD_TO_DEG

Defines

#define VEC_API
#define M_E
#define M_LOG2E
#define M_LOG10E
#define M_LN2
#define M_LN10
#define M_PI
#define M_PI_2
#define M_PI_4
#define M_1_PI
#define M_2_PI
#define M_2_SQRTPI
#define M_SQRT2
#define M_SQRT1_2
#define VECMAT_EPS_F32
#define VECMAT_EPS_F64
#define VECMAT_FLT_MAX
#define VECMAT_DBL_MAX
#define VECMAT_FLT_MIN
#define VECMAT_DBL_MIN
#define VECMAT_VEC2_SIZE
#define VECMAT_VEC3_SIZE
#define VECMAT_VEC4_SIZE
#define VECMAT_MAT2_SIZE
#define VECMAT_MAT3_SIZE
#define VECMAT_MAT4_SIZE
#define VECMAT_QUAT_SIZE
#define VECMAT_FLOAT_BITS
#define VM_F(x)
#define VM_DEG(d)
Angle literals in the library's native unit (radians).
#define VM_RAD(r)
#define VEC_INT_MAX
#define VEC_INT_MIN

Define documentation

#define VM_DEG(d)

Angle literals in the library's native unit (radians).

VM_DEG(90) writes a human degree constant and yields radians. VM_RAD(M_PI_2) documents that the value is already radians and casts it to vm_float_t. Unsuffixed angle APIs take and return radians; use the _deg suffix at the human/config boundary.