Previous in Forum: firewire camera for machine vision   Next in Forum: for a projects
Close
Close
Close
12 comments
Rate Comments: Nested
Commentator
Popular Science - Genetics - India - Member - New Member Popular Science - Biology - Member Technical Fields - Education - New Member Hobbies - Musician - New Member

Join Date: Aug 2007
Location: New Delhi - India
Posts: 77

Urgent!!! Midpoint of Arc formula

09/26/2008 3:24 PM

Hey...

Can anyone give me the formula of the mid point of an arc??

I have the coordinates of the 2 ends of the arc (spherical ie. the coordinates are in xyz)

The center is origin.

Now, there are 4 such possibilities.... unless i have one more parameter...

I have a point that the radius passes through but it lies inside the sphere... I need the exact point on the sphere.

Thanx

__________________
Whenever I find the key to success, someone changes the lock
Register to Reply
Pathfinder Tags: arc circle maths mid point Sphere
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#1

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 3:48 PM

in 2D

Anywhere on the line going through the mid point perpendicular to the line. (assuming homework I stop here)

You would need another point or a radius to fix it to a point.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Commentator
Popular Science - Genetics - India - Member - New Member Popular Science - Biology - Member Technical Fields - Education - New Member Hobbies - Musician - New Member

Join Date: Aug 2007
Location: New Delhi - India
Posts: 77
#2
In reply to #1

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 4:24 PM

Nah in 3D...

And i tried to look up extending a ray but no equations are available.

It is amazing how most softwares do it so easily.. the equations are hard to find.

the point lies on a polyhedron in the center of the sphere.

__________________
Whenever I find the key to success, someone changes the lock
Register to Reply
Commentator
Popular Science - Genetics - India - Member - New Member Popular Science - Biology - Member Technical Fields - Education - New Member Hobbies - Musician - New Member

Join Date: Aug 2007
Location: New Delhi - India
Posts: 77
#3
In reply to #2

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 4:54 PM
__________________
Whenever I find the key to success, someone changes the lock
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#4
In reply to #2

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 5:27 PM

Definitely not homework.

What about using x² + y² + z² = R² ? but you would need R and a third point.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#8
In reply to #4

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 9:00 PM

absolutely a homework of a middle school student.

you hve list sphere surface equation. and have two points. the midpoint coordinates is very evident.

Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#5

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 6:00 PM

With centre point and radius known

Mid point C =

xa + (xa - xb) / 2 , ya + (ya-xb) / 2 , za + (za-zb)/2

Point X can then be calculated by extending the vector Centre - C up to the radius.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#6

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 6:31 PM

I desperately need glasses. But I am standing because I cannot sit down for a long time.

You could go polar - determine Θ in the xy plane and then α in the z direction.

Xx = r Cos Θ

Xy = r sin Θ

Xz = r cos α

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru

Join Date: Jul 2007
Posts: 4448
Good Answers: 143
#7

Re: Urgent!!! Midpoint of Arc formula

09/26/2008 7:34 PM
__________________
"Well, I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it." Elwood P. Dowd
Register to Reply
Power-User

Join Date: May 2008
Posts: 380
#9

Re: Urgent!!! Midpoint of Arc formula

09/27/2008 10:05 AM

Write the parametric equation line thru "o"and "c",(at;bt;ct),look for the "t" for interjection line with surface sphere,put this value in the obtained line equation,now you got a point what belongs to the line and to the sphere (two points).-

Register to Reply
Anonymous Poster
#10

Re: Urgent!!! Midpoint of Arc formula

09/27/2008 12:32 PM

The mid point of the arc cord is most easily given by adding the x's and dividing by two. Same for y's and z's. Then extend the ray from the origin through this point distance R.

That part of the problem reduces to solving two similar triangles which can be done using trigonometry or Pythagorius's theorem. I like Pythagorius. By substituting the mean coordinate point formula into the Pythagorian formula and working hard on the algebra you should be able to reduce the result to a single line that gives the R(x,y,z) of the tangent point of the spherical arc segment. I'm not interested enough in your problem to do the work for you.

Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#11

Re: Urgent!!! Midpoint of Arc formula

09/29/2008 3:20 AM

First off the radius of the sphere is R = SQRT(x12+y12+z12) OR SQRT(x22+y22+z22)

Now the coordinates of the mid point of the line between the two points is

(x3,y3,z3) = ((x1+x2)/2,(y1+y2)/2,(z1+z2)/2)

If the length of the line to the mid point is L = SQRT(x32+y32+z32)

Let the ratio of radius to the length to the mid point be k = R/L

Then the coords. of the mid point of the arc are (kx3,ky3,kz3)

Have I missed the point here (no pun intended)?

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply Score 1 for Good Answer
Anonymous Poster
#12

Re: Urgent!!! Midpoint of Arc formula

09/30/2008 11:55 AM

The easiest method is, to use polar coordinates.

Assuming you use a coordinate system, which has its origin in the middle of the circle.

Then the equation of the circle is x^2+y^2=r^2

with x= r*cos (phi) and y = r*sin (phi)

you need to know only phi of the midpoint of the arc.

Use the coordiates of the two points, which you know and calculate their angles

alpha and beta

with xA = r*cos(alpha) and xB= r*cos(beta), you get alpha and beta, by using the inverse functions

alpha = arcus cosinus ( xA/r) and beta = arcus cosinus ( xB/r)

Subtract the angles and divide them by two:

(Alpha -Beta)/ 2 = phi

Put phi in the first two equations above and you have the coordinates of the mid point of the arc.

regards

Claus

Register to Reply
Register to Reply 12 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); cnpower (1); ferquiza (1); Hendrik (4); Mrinny (2); Randall (1); TVP45 (1)

Previous in Forum: firewire camera for machine vision   Next in Forum: for a projects

Advertisement