Subject: [ggl] Hello + some newbie questions
From: Mateusz Loskot (mateusz)
Date: 2009-05-06 18:44:49
> Mateusz Loskot wrote:
>> I think the ggl::math::hav function could be template for easy
>> interchangeable use with float and double types:
>> template <typename T>
>> inline T hav(T const& theta)
>> using boost::math::constants::half;
>> T const sn = std::sin(half<T>() * theta);
>> return sn * sn;
> Good idea, actually I was thinking the same when I revisited this one of
> these days. Strange it was not there.
>> Same ggl::math::sqrt.
> OK (it is "sqr" and maybe it can go).
Done. Sure, I meant sqr().
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
Geometry list run by mateusz at loskot.net