/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */ /* $Id: cmnConstants.h,v 1.6 2007/04/26 19:33:57 anton Exp $ Author(s): Anton Deguet Created on: 2005-10-17 (C) Copyright 2005-2007 Johns Hopkins University (JHU), All Rights Reserved. --- begin cisst license - do not edit --- This software is provided "as is" under an open source license, with no warranty. The complete license can be found in license.txt and http://www.cisst.org/cisst/license.txt. --- end cisst license --- */ /*! \file \brief Declaration of various constants \ingroup cisstCommon */ #ifndef _cmnConstants_h #define _cmnConstants_h #include /*! PI */ const double cmnPI = 3.1415926535897932384626433832795029; /*! PI / 2 */ const double cmnPI_2 = 1.5707963267948966192313216916397514; /*! PI / 4 */ const double cmnPI_4 = 0.7853981633974483096156608458198757; /*! PI / 180 : convert degrees to radians */ const double cmnPI_180 = cmnPI / 180.0; #endif // _cmnConstants_h // **************************************************************************** // Change History // **************************************************************************** // // $Log: cmnConstants.h,v $ // Revision 1.6 2007/04/26 19:33:57 anton // All files in libraries: Applied new license text, separate copyright and // updated dates, added standard header where missing. // // Revision 1.5 2006/11/20 20:33:19 anton // Licensing: Applied new license to cisstCommon, cisstVector, cisstNumerical, // cisstInteractive, cisstImage and cisstOSAbstraction. // // Revision 1.4 2006/06/23 17:52:07 ofri // cmnConstants.h : Added constant cmnPI_180 to convert degrees to radians. // // Revision 1.3 2006/01/25 22:16:53 anton // cmnConstants.h: Removed confusing cmn2_PI following 2006-01-25 meeting. // // Revision 1.2 2005/10/24 20:42:24 anton // cmnConstants: Moved "instantiation" to header file using explicit values. // This should help the compiler to optimize some code (see #131). // // Revision 1.1 2005/10/17 23:50:02 anton // cmnConstants: Added first version with cmnPI, cmn2_PI, cmnPI_2 and cmnPI_4 // (see ticket #113). // // // ****************************************************************************