Merge pull request #746 from sgiraudot/Barycentric_coordinates_2-Fix_precision_too_high_32b-GF

Barycentric coordinates: precision too high for 32b processors
This commit is contained in:
Sebastien Loriot 2016-02-07 18:10:09 +01:00
commit 4ce7c123f0
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ int main()
const Scalar y_scale = Scalar(100);
int count = 0;
const Scalar epsilon = Scalar(1) / Scalar(std::pow(10.0, 13.0));
const Scalar epsilon = Scalar(1) / Scalar(std::pow(10.0, 8.0));
const Scalar limit_x = x_scale*step;
const Scalar half = Scalar(1) / Scalar(2);