Open duvifn opened 7 years ago
Thanks @duvifn
For performance, this might just be a doc fix so that geodeticSurfaceNormal
requires a height of zero. @duvifn do you have another suggestion?
@pjcozzi if that's the case, shouldn't we throw a DeveloperError
if the height is greater than zero?
I am suggesting that the performance for the conversion is not worth it.
Thanks @pjcozzi and @hpinkos for reviewing this.
@duvifn do you have another suggestion?
Not really. Maybe additional parameter that explicitly indicates if the input value is on the surface.
Anyway, please consider reviewing of the code that currently uses this function (js and glsl). I saw some places where the input is not necessarily on the ellipsoid surface.
I believe that for most of the needs the bias is not significant, but there can be places in which this could lead to error
I encountered this while working on #4622.
Sandcastle for this issue
The following code log
false
to console:However,
Ellipsoid.geodeticSurfaceNormalCartographic
returns accurate result in this case: