Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74708 - in sandbox/SOC/2010/sweepline: . boost/sweepline/detail
From: sydorchuk.andriy_at_[hidden]
Date: 2011-10-04 18:05:50


Author: asydorchuk
Date: 2011-10-04 18:05:49 EDT (Tue, 04 Oct 2011)
New Revision: 74708
URL: http://svn.boost.org/trac/boost/changeset/74708

Log:
Added a notification about moving to https://svn.boost.org/svn/boost/sandbox/gtl
Added:
   sandbox/SOC/2010/sweepline/READ.txt (contents, props changed)
Text files modified:
   sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_calc_kernel.hpp | 24 ++++++++++++------------
   1 files changed, 12 insertions(+), 12 deletions(-)

Added: sandbox/SOC/2010/sweepline/READ.txt
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/sweepline/READ.txt 2011-10-04 18:05:49 EDT (Tue, 04 Oct 2011)
@@ -0,0 +1,2 @@
+Further development of this project is moving to https://svn.boost.org/svn/boost/sandbox/gtl.
+This project will be a part of the Boost.Polygon library.
\ No newline at end of file

Modified: sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_calc_kernel.hpp
==============================================================================
--- sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_calc_kernel.hpp (original)
+++ sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_calc_kernel.hpp 2011-10-04 18:05:49 EDT (Tue, 04 Oct 2011)
@@ -554,18 +554,18 @@
             static mpt_type mpz_dif_x[3], mpz_dif_y[3], mpz_sum_x[2], mpz_sum_y[2],
                             mpz_numerator[3], mpz_c_x, mpz_c_y, mpz_sqr_r, denom,
                             cA[2], cB[2];
- mpz_dif_x[0] = static_cast<double>(site1.x()) - static_cast<double>(site2.x());
- mpz_dif_x[1] = static_cast<double>(site2.x()) - static_cast<double>(site3.x());
- mpz_dif_x[2] = static_cast<double>(site1.x()) - static_cast<double>(site3.x());
- mpz_dif_y[0] = static_cast<double>(site1.y()) - static_cast<double>(site2.y());
- mpz_dif_y[1] = static_cast<double>(site2.y()) - static_cast<double>(site3.y());
- mpz_dif_y[2] = static_cast<double>(site1.y()) - static_cast<double>(site3.y());
+ mpz_dif_x[0] = site1.x() - site2.x();
+ mpz_dif_x[1] = site2.x() - site3.x();
+ mpz_dif_x[2] = site1.x() - site3.x();
+ mpz_dif_y[0] = site1.y() - site2.y();
+ mpz_dif_y[1] = site2.y() - site3.y();
+ mpz_dif_y[2] = site1.y() - site3.y();
+ mpz_sum_x[0] = site1.x() + site2.x();
+ mpz_sum_x[1] = site2.x() + site3.x();
+ mpz_sum_y[0] = site1.y() + site2.y();
+ mpz_sum_y[1] = site2.y() + site3.y();
+
             denom = (mpz_dif_x[0] * mpz_dif_y[1] - mpz_dif_x[1] * mpz_dif_y[0]) * 2.0;
- mpz_sum_x[0] = static_cast<double>(site1.x()) + static_cast<double>(site2.x());
- mpz_sum_x[1] = static_cast<double>(site2.x()) + static_cast<double>(site3.x());
- mpz_sum_y[0] = static_cast<double>(site1.y()) + static_cast<double>(site2.y());
- mpz_sum_y[1] = static_cast<double>(site2.y()) + static_cast<double>(site3.y());
-
             mpz_numerator[1] = mpz_dif_x[0] * mpz_sum_x[0] + mpz_dif_y[0] * mpz_sum_y[0];
             mpz_numerator[2] = mpz_dif_x[1] * mpz_sum_x[1] + mpz_dif_y[1] * mpz_sum_y[1];
 
@@ -1315,7 +1315,7 @@
     // Return true if the value is positive, else false.
     template <typename T>
     static bool convert_to_65_bit(T value, ulong_long_type &res) {
- if (value >= static_cast<T>(0.0)) {
+ if (value >= static_cast<T>(0)) {
             res = static_cast<ulong_long_type>(value);
             return true;
         } else {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk