testStelSphereGeometry.cpp   testStelSphereGeometry.cpp 
skipping to change at line 281 skipping to change at line 281
void TestStelSphericalGeometry::testGreatCircleIntersection() void TestStelSphericalGeometry::testGreatCircleIntersection()
{ {
Vec3d v0,v1,v2,v3; Vec3d v0,v1,v2,v3;
double deg5 = 5.*M_PI/180.; double deg5 = 5.*M_PI/180.;
StelUtils::spheToRect(-deg5, -deg5, v3); StelUtils::spheToRect(-deg5, -deg5, v3);
StelUtils::spheToRect(+deg5, -deg5, v2); StelUtils::spheToRect(+deg5, -deg5, v2);
StelUtils::spheToRect(+deg5, +deg5, v1); StelUtils::spheToRect(+deg5, +deg5, v1);
StelUtils::spheToRect(-deg5, +deg5, v0); StelUtils::spheToRect(-deg5, +deg5, v0);
bool ok; bool ok;
Vec3d v(0); Vec3d v(0.0);
QBENCHMARK { QBENCHMARK {
v = greatCircleIntersection(v3, v1, v0, v2, ok); v = greatCircleIntersection(v3, v1, v0, v2, ok);
} }
QVERIFY(v.angle(Vec3d(1.,0.,0.))<0.00001); QVERIFY(v.angle(Vec3d(1.,0.,0.))<0.00001);
} }
void TestStelSphericalGeometry::benchmarkGetIntersection() void TestStelSphericalGeometry::benchmarkGetIntersection()
{ {
SphericalRegionP bug1 = SphericalRegionP::loadFromJson("{\"worldCoor ds\": [[[123.023842, -49.177087], [122.167613, -49.177087], [122.167613, -4 8.631248], [123.023842, -48.631248]]]}"); SphericalRegionP bug1 = SphericalRegionP::loadFromJson("{\"worldCoor ds\": [[[123.023842, -49.177087], [122.167613, -49.177087], [122.167613, -4 8.631248], [123.023842, -48.631248]]]}");
SphericalRegionP bug2 = SphericalRegionP::loadFromJson("{\"worldCoor ds\": [[[123.028902, -49.677124], [122.163995, -49.677124], [122.163995, -4 9.131382], [123.028902, -49.131382]]]}"); SphericalRegionP bug2 = SphericalRegionP::loadFromJson("{\"worldCoor ds\": [[[123.028902, -49.677124], [122.163995, -49.677124], [122.163995, -4 9.131382], [123.028902, -49.131382]]]}");
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/