Namespaces | Defines | Functions | Variables

_src_math_funcs_trig.hh File Reference

Math functions (trig). See math/funcs.hh. REMINDERS: Consider using MATH_EXCEPTION() instead of ASSERT(). More...

#include "math/defs_trig.hh"
#include "math/types_trig.hh"
#include "math/funcs_debug.hh"
#include "math/funcs.hh"

Go to the source code of this file.

Namespaces

namespace  math
 

math functions


Defines

#define IF_DEG_GT(DEG1, DEG2)   (ABS(DEG1) > ABS(DEG2))
#define IF_DEG_LT(DEG1, DEG2)   (ABS(DEG1) < ABS(DEG2))
#define IF_RAD_GT(RAD1, RAD2)   (ABS(RAD1) > ABS(RAD2))
#define IF_RAD_LT(RAD1, RAD2)   (ABS(RAD1) < ABS(RAD2))
#define DEG2RAD(DEG)   ((DEG) * (degRadRatio))
#define RAD2DEG(RAD)   ((RAD) * (radDegRatio))

Functions

template<typename FP >
std::pair< FP, FP > math::SinCos (const Radian rad)
INLINE Radian math::Deg2Rad (const Degree deg)
INLINE Degree math::Rad2Deg (const Radian rad)
INLINE Degree::value_type math::Sin (const Degree deg)
INLINE Degree::value_type math::Cos (const Degree deg)

Variables

INTERN const fpx math::degRadRatio = (1.0 / 360.0) * (math::PI_DOUBLE)
INTERN const fpx math::radDegRatio = (1.0 / math::PI_DOUBLE) * 360.0

Detailed Description

Math functions (trig). See math/funcs.hh. REMINDERS: Consider using MATH_EXCEPTION() instead of ASSERT().

LastChangedDate:
2011-09-10 23:54:34 -0400 (Sat, 10 Sep 2011)
Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define DEG2RAD (   DEG  )     ((DEG) * (degRadRatio))
#define IF_DEG_GT (   DEG1,
  DEG2 
)    (ABS(DEG1) > ABS(DEG2))
#define IF_DEG_LT (   DEG1,
  DEG2 
)    (ABS(DEG1) < ABS(DEG2))
#define IF_RAD_GT (   RAD1,
  RAD2 
)    (ABS(RAD1) > ABS(RAD2))
#define IF_RAD_LT (   RAD1,
  RAD2 
)    (ABS(RAD1) < ABS(RAD2))
#define RAD2DEG (   RAD  )     ((RAD) * (radDegRatio))
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10