Calculate the Center of the Circle using any two points on the Circle (chord) and radius

Calculate the Center of the Circle using any two points on the Circle (chord) and radius

This is the Java program I wrote as part of my research project in my post-graduation.  I missed to add this at my technical blog.  This little program has helped many users and received amazing response. Users have accessed this code  17312 times up-to this date @ planet-source-code.com.

Objective:

The purpose of the code is to calculate the center of the circle if any two points from the border of the circle is given, including radius also as an input. In other words, we can say, calculating the center of the circle using a chord. This will useful in any wireless (sensor) network project, particularly, if the user working in any network simulator, they used to work with nodes and edges (graph). In such case, if they want to estimate the location of the node, they can use this code.

 http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=5793&lngWId=2

One of the feedback from unknown user is below:

From: Steve Spodaryk <steve.spodaryk@gmail.com>
Subject: Re: Calculate the Center of the Circle using any two points on the Circle (chord) and radius
To: pcs_saravanan@yahoo.co.in
Date: Tuesday, July 13, 2010, 4:08 AM

Saravanan,

Thanks very much for posting this program.  I need to do this
operation occasionally and working through the algebra each time was
tiresome.  I’ve also solved it with geometry and a CAD program, but
much easier to run your program when I need the numbers.

Thanks,

Steve

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: