Hi,

I'm new to GLM (what an awesome library btw), and can't find any math constants, which seems odd given its functional coverage.

Specifically I'm looking for just good old M_PI. I see hardwired constants all over the place, which again seems odd to me. For instance in glm::core::function::trigonometric the 'degrees' function (and all other associated trigonometric functions) defines pi in place (3.141...), like this:

Code :
// radians
template <typename genType>
GLM_FUNC_QUALIFIER genType radians
(
    genType const & degrees
)
{
    GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'radians' only accept floating-point input");
 
    const genType pi = genType(3.1415926535897932384626433832795);
    return degrees * (pi / genType(180));
}

Can anyone lead me in the right direction?

Cheers,
Shane