1 /*****************************************************************************
2  * $LastChangedDate: 2010-06-28 19:40:12 -0400 (Mon, 28 Jun 2010) $
3  * @file
4  * @author  Jim E. Brooks  http://www.palomino3d.org
5  * @brief   Math types (trig).
6  *//*
7  * LEGAL:   COPYRIGHT (C) 2009 JIM E. BROOKS
8  *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
9  *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
10  *****************************************************************************/
11 
12 #ifndef MATH_TYPES_TRIG_HH
13 #define MATH_TYPES_TRIG_HH 1
14 
15 #include "base/types.hh"
16 
17 namespace math {
18 
19 ////////////////////////////////////////////////////////////////////////////////
20 ///////////////////////////////  T R I G   /////////////////////////////////////
21 ////////////////////////////////////////////////////////////////////////////////
22 
23 // Distinct type to ensure a degree/radian aren't confused.
24 /// @class math::Radian
25 /// @brief Distinct float type.
26 /// @class math::Degree
27 /// @brief Distinct float type.
28 #if SPEED
29 DECLARE_DISTINCT_TYPE( Radian, fp, FP )
30 DECLARE_DISTINCT_TYPE( Degree, fp, FP )
31 #else
32 DECLARE_DISTINCT_TYPE( Radian, fpx, FP )  // same name for conversion function FP()
33 DECLARE_DISTINCT_TYPE( Degree, fpx, FP )
34 #endif
35 
36 } // namespace math
37 
38 #endif // MATH_TYPES_TRIG_HH
39