12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOOST_GEOMETRY_PROJECTIONS_PJ_TSFN_HPP
- #define BOOST_GEOMETRY_PROJECTIONS_PJ_TSFN_HPP
- #include <boost/geometry/util/math.hpp>
- namespace boost { namespace geometry { namespace projections {
- namespace detail {
-
- template <typename T>
- inline T pj_tsfn(T const& phi, T sinphi, T const& e)
- {
- sinphi *= e;
- return (tan (.5 * (geometry::math::half_pi<T>() - phi)) /
- math::pow((T(1) - sinphi) / (T(1) + sinphi), T(0.5) * e));
- }
- }
- }}}
- #endif
|