MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Different angles of a circle drown

This is a discussion on Different angles of a circle drown within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I've a geometric matter....I've drawn a circle on the map... till now everithing ok. From this circle i know ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-12-2006
Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 44
Different angles of a circle drown

Hi,
I've a geometric matter....I've drawn a circle on the map... till now everithing ok. From this circle i know radius and center. Now.. i want to draw 2 more lines starting from the center at different angles of the drawn circle..

as

center is 1 and 1.. i've 2 angles form 0 to 360... i want to draw to lines from the center location (i know) to the surface of the circle..

is it possible???

Ragards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-12-2006
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
Yes, so you basically need to know the location on the circle.

You know the starting point, the distance, and the angle, but to use the MapPoint method AddLine or whatever you need to know the location on circle.

It seems like it should be very simple and I'm sure at some point I knew how to do it from math class on a Cartesian plane, but lat/lon always makes it more complicated.

Try this section on the Aviation Formulary --
http://williams.best.vwh.net/avform.htm#LL

Also, in the introduction there is a link to a spreadsheet and implementation notes.

hope this helps!

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-13-2006
Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 44
Hi Eric,
what i'm looking for are the 2 points on the circumference to track 2 lines from the center of the circle to this points..

In math this points are so esy to find doing this way

Xa = r * sin(angle1)
Xb = r* cos(angle1)


Ya = r* sin(angle2)
Yb = r* cos(angle2)

this is the theory.. but it dont works... so i show you the code i'm using for doing that... i repeat that i have for the circle the center X,Y expressed in lat/Lon the radius of the circle and the two angles.

double lnKMRadius = km2miles(r) * 1.609;
MapPoint.Location loc = this.mMap.GetLocation(Lat, Long, 0);
MapPoint.Shape oMaxCircle = this.mMap.Shapes.AddShape(MapPoint.GeoAutoShapeTyp e.geoShapeRadius, loc, lnKMRadius *2 , lnKMRadius *2);


double Xa = lnKMRadius * sin(angle1);
double Xb = lnKMRadius * cos(angle1);

MapPoint.Location locX = this.mMap.GetLocation(Xa + lat, Xb + long, 0);

so i draw the line.. but the result is not what expected.. the line that have to stop on the circumference goes more over there and the angle for this line is not the right angle.

Any Idea?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
angles, circle, drown


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/different-angles-circle-drown-5074.html

Posted By For Type Date
Equity Home Loan Lowest - after loan home, lowest financial This thread Refback 11-16-2007 10:14 AM
California Refinance - date california refinance, california market This thread Refback 11-15-2007 08:02 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Radius of a Circle Gianmaria MapPoint 2006/2009 Discussion 1 07-14-2006 02:32 PM
Exporting and Importing circle coordinatesq CESENAC MapPoint 2006/2009 Discussion 0 05-17-2006 03:41 PM
finding the radius of a drawed circle Wilfried MapPoint 2006/2009 Discussion 2 06-23-2005 02:45 AM
Pushpin and Shaded Circle Size Anonymous MapPoint 2006/2009 Discussion 1 11-19-2004 09:23 AM
Using the shaded circle map and linked data, can I.... Anonymous MapPoint 2006/2009 Discussion 1 10-10-2001 08:28 AM


All times are GMT -5. The time now is 07:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54