y = sin(angle)*distance

x = cos(angle)*distance

Solved

Posted on 2006-05-12

I have:

Pa.Lat_origin=Pa.Lat-Pb.Lat;

Pa.Lng_origin=(Pa.Lng-Pb.Lng)*Math.Cos(Pb.Lat*Math.PI/180);

(Math.Atan2(Pa.Lat_origin,Pa.Lng_origin))*180/Math.PI = angle

I want to isolate angle....

Math.Atan2((Pa.Lat-Pb.Lat),((Pa.Lng-Pb.Lng)*Math.Cos(Pb.Lat*Math.PI/180))) = angle*Math.PI/180

How do i do the opposite of Atan2?

Basically this method is the one i use to find an angle....

Now i want to find a point based on an angle.

Thanks

Richard

Pa.Lat_origin=Pa.Lat-Pb.La

Pa.Lng_origin=(Pa.Lng-Pb.L

(Math.Atan2(Pa.Lat_origin,

I want to isolate angle....

Math.Atan2((Pa.Lat-Pb.Lat)

How do i do the opposite of Atan2?

Basically this method is the one i use to find an angle....

Now i want to find a point based on an angle.

Thanks

Richard

7 Comments

y = sin(angle)*distance

x = cos(angle)*distance

is good in a cartesian plan but in lat longs, i need to modify my long according to the lat

this is what i did when finding the angle.... how do i reverse that?

Pa.Lng_origin=(Pa.Lng-Pb.L

Maybe i'm complicating things to much....

if Angle = (Math.Atan2(Pa.Lat_origin,

Pa.Lat_origin = ?

Pa.Lng_origin = ?

Pa.Lat_origin = distance*sin(Angle*Math.PI

Pa.Lng_origin = distance*cos(Angle*Math.PI

Pa.Lat_origin = distance*sin(Angle*Math.PI

Pa.Lng_origin = distance*cos(Angle*Math.PI

also holds, where

distance = sqrt(Pa.Lat_origin*Pa.Lat_

By clicking you are agreeing to Experts Exchange's Terms of Use.

Title | # Comments | Views | Activity |
---|---|---|---|

Imiting The Facebook News Feed Algorithm Formula | 1 | 53 | |

Reviews / comments on Inversion table's health benefits | 3 | 70 | |

Simple Random Sample | 2 | 43 | |

Simple formula for calculating R-Squared between 2 stocks | 8 | 36 |

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**12** Experts available now in Live!