mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-10 11:32:15 +00:00
geometry extensions: fixed some compile errors.
[SVN r84588]
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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>();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user