1. 程式人生 > >常用宏定義 - 由角度轉換弧度、由弧度轉換角度

常用宏定義 - 由角度轉換弧度、由弧度轉換角度

ora gre cti dia objective 宏定義 obj fine -c


1、角度轉換弧度

#define CHDegreesToRadian(x) (M_PI * (x) / 180.0)

2、弧度轉換角度

#define CHRadianToDegrees(radian) (radian*180.0)/(M_PI)

常用宏定義 - 由角度轉換弧度、由弧度轉換角度