typedef struct { float x; float y; float z; } vec3d;