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:
- 10 Oct 2020
- 01 Jul 2020
- 06 Apr 2020
- 11 Mar 2020
- 15 Feb 2020
Recent on Build5Nines.com
- 04 Dec 2020
Latest Cloud News: Apple on K8s, IoT, Microsoft Pluton and more! (November 20, 2020 Build5Nines Weekly)20 Nov 2020
Latest Cloud News: .NET 5 Released, Apple Silicon M1 CPU, and more! (November 12, 2020 Build5Nines Weekly)12 Nov 2020
- 11 Nov 2020
Latest Cloud News: Kubernetes, Terraform, Teams Multi-Login and more! (November 5, 2020 Build5Nines Weekly)05 Nov 2020
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.