geometry extensions: fixed some compile errors.

[SVN r84588]
This commit is contained in:
Adam Wulkiewicz
2013-06-01 00:44:12 +00:00
parent b3537d9ebf
commit 78069a375f
4 changed files with 15 additions and 5 deletions

View File

@@ -159,11 +159,11 @@ inline static void matrix_rotate(M const& m, V const& v, VD & vd)
}
template <typename V, typename Q>
inline static void quaternion_rotate(V & v, Q const& q)
inline static void quaternion_rotate(V & v, Q const& r)
{
// TODO - choose more precise type?
typedef typename select_most_precise<
typedef typename geometry::select_most_precise<
typename traits::coordinate_type<V>::type,
typename traits::coordinate_type<Q>::type
>::type T;

View File

@@ -3,6 +3,7 @@
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.

View File

@@ -3,6 +3,7 @@
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
@@ -31,8 +32,8 @@ namespace detail { namespace envelope
/// Calculate envelope of an n-sphere, circle or sphere (currently only for Cartesian 2D points)
struct envelope_nsphere
{
template <typename Nsphere, typename Box, typename Strategy>
static inline void apply(Nsphere const& nsphere, Box& mbr, Strategy const&)
template <typename Nsphere, typename Box>
static inline void apply(Nsphere const& nsphere, Box& mbr)
{
assert_dimension<Nsphere, 2>();
assert_dimension<Box, 2>();

View File

@@ -3,6 +3,7 @@
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
@@ -27,8 +28,15 @@ namespace boost { namespace geometry
namespace dispatch
{
template <typename Geometry>
struct check<Geometry, nsphere_tag, true>
: detail::concept_check::check<concept::ConstNsphere<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, nsphere_tag, false>
: detail::concept_check::check<concept::Nsphere<Geometry> >
{};
} // namespace dispatch
#endif