Re: [OpenMap Users] Move Location using heading and distance

From: Carsten Ø. Madsen <com_at_navicon.dk>
Date: Mon, 28 Aug 2006 14:58:04 +0200

Hi

What about using something like:

LatLonPoint ll = new LatLonPoint(llp[0], llp[1]);
LatLonPoint mostForwardP = ll.getPoint(Length.METER.toRadians(distToStem),
ProjMath.degToRad(heading));

http://openmap.bbn.com/doc/api/com/bbn/openmap/LatLonPoint.html

regards
/carsten

Ste'phane Wasserhardt wrote:
> Hello !
>
> I'm searching for an openMap method which can determine a new Location
> from a location, a heading (in degrees or radians) and a distance (in
> lat/lon space). For instance :
> "Location moveBy(Location origin, {float or double} heading, {float or
> double} distance)".
> There's no such method in the Location class, but there may be a
> static one elsewhere...
>
> Thanks in advance !
> Stephane
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Aug 28 2006 - 08:59:21 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT