centerX = sum(x1,x2,...,x11)/11;

centerY = sum(y1,y2,...,y11)/11;

centerpoint is (centerX, centerY)

5 Comments

Comment Utility

centerX = sum(x1,x2,...,x11)/11;

centerY = sum(y1,y2,...,y11)/11;

centerpoint is (centerX, centerY)

centerX = sum(x1,x2,...,x11)/11;

centerY = sum(y1,y2,...,y11)/11;

centerpoint is (centerX, centerY)

Comment Utility

Suppose (x,y) are the co-ordinates of the centre of arc.

Let (x1,y1) and (x2,y2) be two of the points on arc.

Then :

(x-x1)^2+(y-y1)^2=r^2 where r is the radius.

(x-x2)^2+(y-y2)^2=r^2

So equate these two equations to get the centre of circle which (x,y)

With regards,

V.Kartik

Let (x1,y1) and (x2,y2) be two of the points on arc.

Then :

(x-x1)^2+(y-y1)^2=r^2 where r is the radius.

(x-x2)^2+(y-y2)^2=r^2

So equate these two equations to get the centre of circle which (x,y)

With regards,

V.Kartik

Comment Utility

..and you shouldmake sure all pairs result in the same centerpoint

Comment Utility

Sorry, that ain't right.

Given any two points, there are an infinite number of different arcs that pass through both.

You can see this because if you do what kartik suggested, you get:

(x-x1)^2+(y-y1)^2=(x-x2)^2+(y-y2)^2

1 equation with 2 unknowns (x and y) has an infinite number of solutions.

So you need *three* points, from which you can get *two* equations:

(x-x1)^2+(y-y1)^2=(x-x2)^2+(y-y2)^2

and

(x-x1)^2+(y-y1)^2=(x-x3)^2+(y-y3)^2

and now you really can solve for x and y.

kotan answered the question `how do I find the center of mass of the arc' rather than `how do I find the center of the circle of which the arc belongs to' .. if that was what you intended, then his answer is correct.

Given any two points, there are an infinite number of different arcs that pass through both.

You can see this because if you do what kartik suggested, you get:

(x-x1)^2+(y-y1)^2=(x-x2)^2

1 equation with 2 unknowns (x and y) has an infinite number of solutions.

So you need *three* points, from which you can get *two* equations:

(x-x1)^2+(y-y1)^2=(x-x2)^2

and

(x-x1)^2+(y-y1)^2=(x-x3)^2

and now you really can solve for x and y.

kotan answered the question `how do I find the center of mass of the arc' rather than `how do I find the center of the circle of which the arc belongs to' .. if that was what you intended, then his answer is correct.

Comment Utility

Thanks you all for kind help.

Title | # Comments | Views | Activity |
---|---|---|---|

Create a program that allow the user enter number of seconds then convert to hours, minutes and seconds. | 8 | 59 | |

multiple DLLs with the same namespace | 5 | 82 | |

ADO Memory leak with DELPHI 2007 | 37 | 153 | |

IdTelnet1DataAvailable handler freezes the Application | 4 | 49 |

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**9** Experts available now in Live!