mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[test][formulas][strategies] Change expected results of geo intersection.
This commit is contained in:
parent
5eb599eae9
commit
2b85597ca0
@ -52,6 +52,9 @@ expected_results expected[] =
|
||||
{ -0.0000055778585615, -0.0000000000000000 },
|
||||
{ -0.0000000000000000, -0.0000000000000000 }
|
||||
},{
|
||||
// TODO: Newton method in Sjoberg formula is not used in this case
|
||||
// due to f1 - f2 == 0. The other method is used instead.
|
||||
// Hence different results. Look into this.
|
||||
{ 1, 1 },{ -1, -1 },
|
||||
{ -1, 1 },{ 1, -1 },
|
||||
{ 0.0000000000000000, 0.0000000000000000 },
|
||||
@ -61,6 +64,9 @@ expected_results expected[] =
|
||||
{ -0.0000000000000001, -0.0000055787431353 },
|
||||
{ -0.0000000000000000, 0.0000000000000000 }
|
||||
},{
|
||||
// TODO: Newton method in Sjoberg formula is not used in this case
|
||||
// due to f1 - f2 == 0. The other method is used instead.
|
||||
// Hence different results. Look into this.
|
||||
{ -1, -1 },{ 1, 1 },
|
||||
{ 1, -1 },{ -1, 1 },
|
||||
{ 0.0000000000000000, 0.0000000000000000 },
|
||||
|
@ -50,22 +50,22 @@ void test_geographic()
|
||||
test_strategies<segment_t, point_t>(
|
||||
"SEGMENT(-45 -45, 45 45)", "SEGMENT(-45 45, 45 -45)",
|
||||
great_elliptic('i', "POINT(0 0)"),
|
||||
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
|
||||
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
|
||||
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
|
||||
test_strategies<segment_t, point_t>(
|
||||
"SEGMENT(-45 -45, 45 45)", "SEGMENT(45 -45, -45 45)",
|
||||
great_elliptic('i', "POINT(0 0)"),
|
||||
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
|
||||
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
|
||||
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
|
||||
test_strategies<segment_t, point_t>(
|
||||
"SEGMENT(45 45, -45 -45)", "SEGMENT(-45 45, 45 -45)",
|
||||
great_elliptic('i', "POINT(0 0)"),
|
||||
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
|
||||
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
|
||||
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
|
||||
test_strategies<segment_t, point_t>(
|
||||
"SEGMENT(45 45, -45 -45)", "SEGMENT(45 -45, -45 45)",
|
||||
great_elliptic('i', "POINT(0 0)"),
|
||||
geodesic_vincenty('i', "POINT(0 -0.0000000019543337739)"),
|
||||
geodesic_vincenty('i', "POINT(0.000000001380087204053 -0.0000000000000063611)"),
|
||||
geodesic_andoyer('i', "POINT(0 0.0003512140328446071)"));
|
||||
|
||||
// crossing X
|
||||
|
Loading…
x
Reference in New Issue
Block a user