00001 // 00002 // Copyright 2010 Autodesk, Inc. All rights reserved. 00003 // 00004 // Use of this software is subject to the terms of the Autodesk license 00005 // agreement provided at the time of installation or download, or which 00006 // otherwise accompanies this software in either electronic or hard copy form. 00007 // 00008 // 00009 00010 #pragma once 00011 00013 #define PI ((float)3.1415926535) 00014 00015 #define TWOPI ((float)6.283185307) 00016 00017 #define HALFPI ((float)1.570796326794895) 00018 00019 #define DEG_TO_RAD (PI/(float)180.0) 00020 00021 #define RAD_TO_DEG ((float)180.0/PI) 00022 00023 #define DegToRad(deg) (((float)deg)*DEG_TO_RAD) 00024 00025 #define RadToDeg(rad) (((float)rad)*RAD_TO_DEG) 00026 00027