[Scilab-users] Function
Samuel Gougeon
sgougeon at free.fr
Tue Sep 29 20:52:36 CEST 2015
Hi,
Le 29/09/2015 15:58, Peter Q. a écrit :
>
> Hi.
> I need your help.
> Is there a function for distance between two points?
> Thanks in advance.
>
.
Sharing the thoughtful skepticism of Claus, i would say: If the points
are lying on a sphere and you are looking for the shortest direct arc
linking them along the sphere, the Wikipedia page about spherical
trigonometry might help you:
https://en.wikipedia.org/wiki/Spherical_trigonometry
Then, the usual cos(), and sin() Scilab functions will allow you
implementing the relevant spherical formula.
;)
Samuel Gougeon
More information about the users
mailing list