tangent.hpp

Go to the documentation of this file.
00001 
00027 #ifndef SGDK_ZREF_TANGENT_HPP
00028 #define SGDK_ZREF_TANGENT_HPP
00029 
00030 #include <cmath>  // Standard C++ math functions.
00031 
00032 namespace sgdk {
00033 
00035 
00055 class Tangent
00056 {
00057  public:
00062     typedef double argument_type;
00063 
00068     typedef double result_type;
00069 
00071 
00074     Tangent()
00075     {
00076     }
00077 
00084     inline result_type operator()(const argument_type angle) const
00085     {
00086         return std::tan(angle);
00087     }
00088 };
00089 }  // namespace sgdk
00090 
00091 #endif  /* SGDK_ZREF_TANGENT_HPP */

Swiss GD Knife is hosted by SourceForge.net.