cpp-geometry-library icon indicating copy to clipboard operation
cpp-geometry-library copied to clipboard

computeOffsetOrigin may not have solutions

Open gistrec opened this issue 5 years ago • 0 comments

Function computeOffsetOrigin may not have solutions, e.g.:

// 'over' the pole.
SphericalUtil::computeOffsetOrigin(LatLng(80, 0), M_PI * MathUtil::EARTH_RADIUS / 4, 180);

// A distance that doesn't fit on the earth.
SphericalUtil::computeOffsetOrigin(LatLng(80, 0), M_PI  * MathUtil::EARTH_RADIUS / 4, 90);

the function should return the status

gistrec avatar Feb 08 '20 07:02 gistrec