Skip to content
Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef ALCHEMY_MACROS_H
2#define ALCHEMY_MACROS_H
12#define SET_VECTOR(v, x, y, z) ((v)[0] = (x), (v)[1] = (y), (v)[2] = (z))
16#define SET_POSITION(p, px, py, pz) \
17 ((p)->x = (px), (p)->y = (py), (p)->z = (pz))
18#define SET_VELOCITY(p, vx, vy, vz) \
19 ((p)->velocityX = (vx), (p)->velocityY = (vy), (p)->velocityZ = (vz))
23#define CLAMP(v, low, high) \
32#define ABS(v) ((v) < 0 ? -(v) : (v))