fixed #define, added some comments

This commit is contained in:
Adam Wulkiewicz
2014-02-03 19:45:07 +01:00
parent 2fff49a684
commit 2e4bafa27c
3 changed files with 13 additions and 9 deletions

View File

@@ -94,15 +94,15 @@ struct linear_linear
// 'i'
if ( it->method == overlay::method_crosses )
{
res.template update<interior, interior, '0'>();
res.template update<interior, exterior, '1'>();
res.template update<exterior, interior, '1'>();
res.template update<interior, interior, '0'>(); // always true
res.template update<interior, exterior, '1'>(); // not always true
res.template update<exterior, interior, '1'>(); // not always true
}
// 'e' 'c'
else if ( it->method == overlay::method_equal
|| it->method == overlay::method_collinear )
{
res.template update<interior, interior, '1'>();
res.template update<interior, interior, '1'>(); // always true
}
// 't' 'm'
else if ( it->method == overlay::method_touch

View File

@@ -2,15 +2,17 @@
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2013.
// Modifications copyright (c) 2013, Oracle and/or its affiliates.
// This file was modified by Oracle on 2013, 2014.
// Modifications copyright (c) 2013-2014, Oracle and/or its affiliates.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_MYSQL_ALGORITHMS_DETAIL_SUB_GEOMETRY_HPP
#define BOOST_GEOMETRY_MYSQL_ALGORITHMS_DETAIL_SUB_GEOMETRY_HPP
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_SUB_GEOMETRY_HPP
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_SUB_GEOMETRY_HPP
namespace boost { namespace geometry {
@@ -123,4 +125,4 @@ get(Geometry & geometry, Id const& id)
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_MYSQL_ALGORITHMS_DETAIL_SUB_GEOMETRY_HPP
#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_SUB_GEOMETRY_HPP

View File

@@ -15,6 +15,8 @@
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
#ifndef BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_WITHIN_POINT_IN_GEOMETRY_HPP
#define BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_WITHIN_POINT_IN_GEOMETRY_HPP