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

From: Carsten Ø. Madsen <com@navicon.dk>
Date: Mon Aug 28 2006 - 08:58:04 EDT

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@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@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Aug 28 09:03:51 2006

This archive was generated by hypermail 2.1.8 : Mon Aug 28 2006 - 09:03:53 EDT