Blame toonz/sources/include/tcg/consts.h
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef TCG_CONSTS_H
|
|
Toshihiro Shimizu |
890ddd |
#define TCG_CONSTS_H
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
/*!
|
|
Toshihiro Shimizu |
890ddd |
\file consts.h
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
\brief This file contains several useful constants to be used with tcg.
|
|
Toshihiro Shimizu |
890ddd |
*/
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//*************************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
// TCG Constants
|
|
Toshihiro Shimizu |
890ddd |
//*************************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
namespace tcg
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//! Contains several useful constants to be used with tcg.
|
|
Toshihiro Shimizu |
890ddd |
namespace consts
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
const double pi = 3.1415926535897932384626433832795; //!< The Pi constant.
|
|
Toshihiro Shimizu |
890ddd |
const double pi_half = 1.5707963267948966192313216916398; //!< Half of Pi.
|
|
Toshihiro Shimizu |
890ddd |
const double pi_3half = 3.0 * pi_half; //!< Three halves of Pi.
|
|
Toshihiro Shimizu |
890ddd |
const double pi_twice = 2.0 * pi; //!< Twice Pi.
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
const double rad_to_deg = 180.0 / pi; //!< Radians to degrees factor.
|
|
Toshihiro Shimizu |
890ddd |
const double deg_to_rad = pi / 180.0; //!< Degrees to radians factor.
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
const double sqrt2 = 1.4142135623730950488016887242097; //!< Square root of 2.
|
|
Toshihiro Shimizu |
890ddd |
const double sqrt2_half = 0.7071067811865475244008443621048; //!< Half of the square root of 2.
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
} // namespace tcg::consts
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif // TCG_CONSTS_H
|