Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Different angles of a circle drown 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 |
| ||||
|
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
__________________ |
| |||
|
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? |
![]() |
| Tags |
| angles, circle, drown |
| ||||
| 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 | |
| |
| ||||
| 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 |