libalmath  1.14.5
almath/tools/altrigonometry.h
00001 /*
00002  * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
00003  * Use of this source code is governed by a BSD-style license that can be
00004  * found in the COPYING file.
00005  */
00006 
00007 
00008 #pragma once
00009 #ifndef _LIBALMATH_ALMATH_TOOLS_ALTRIGONOMETRY_H_
00010 #define _LIBALMATH_ALMATH_TOOLS_ALTRIGONOMETRY_H_
00011 
00012 namespace AL {
00013   namespace Math {
00014 
00015   static const float _4_PI_ = 12.56637056f;
00016   static const float _2_PI_ = 6.28318528f;
00017   static const float PI     = 3.14159265358979323846f;
00018   static const float PI_2   = 1.57079632679489661923f;
00019   static const float PI_4   = 0.785398163397448309616f;
00020   static const float TO_RAD = 0.017453292f;
00021   static const float TO_DEG = 57.295779579f;
00022   }
00023 }
00024 #endif  // _LIBALMATH_ALMATH_TOOLS_ALTRIGONOMETRY_H_
 All Classes Namespaces Functions Variables