Something that can be useful at times in being able to calculate the total Area of a circle, especially when plotting it on a map. So, I decided to slightly modify my “Draw a Circle Radius Around Lat/Lng Point” to make it also calculate the Area of the circles and display that value within the TItle of the Circle Shapes Pushpin.
Remember, back in Trig class, it’s fairly simple to calculate the area of a circle. You just Multiply Pi by the Radius Squared.
Area = Pi * (radius * radius)
Anyway, I know this isn’t a very advanced math problem. If fact it’s much simpler than calculating out the point that make up the circle in the first place. However, I thought I’d post it since it may be usefull to someone that maybe doesn’t quite remember this little trick from Trig class.
Here’s the full, modified source code that contains this:
- 26 Oct 2022
- 07 Oct 2022
- 13 Sep 2022
- 06 Sep 2022
- 13 Aug 2022
Recent on Build5Nines.com
This site is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. We also participates in affiliate programs with Udemy, and other sites. This site is compensated for referring traffic and business to these companies.