quaternion四元数 quaternion四元数类型定义 geometry_datatypes.h 四元数有关的几个接口 quaternion(四元数)有关的功能的完整源码(定义,实现,main函数测试) quaternion四元数类型定义 geometry_datatypes.h #ifndef __LIBQUAT_H_ #define __LIBQUAT_H_ /** Minimum recognizable value. Any value less than this is considered to be * @f$=0@f$ */ #define EPSILON 1e-9 /** * @addtogroup vec_3d 3D Vector operations * @{ */ /** 3D vector type */