Solved

Tangent line to a sphere

Posted on 2004-04-15
3
961 Views
Last Modified: 2012-08-14
I have a arbitrary point on a sphere.  The sphere has an arbitrary radius.

I want to find a tanget line to the point on the sphere, or perhaps more correctly put, I want to find the tangent plane and from the tanget plane obtain any arbitrary line within the plane that touches the point on the sphere.
0
Comment
Question by:bbangerter
3 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 100 total points
ID: 10839495
If the point on the sphere is x1,y1,z1, and the center of the sphere is x0.y0.z0
the tangent plane is (x-x1)(x1-x0)+(y-y1)(y1-y0)+(z-z1)(z1-z0)=0
0
 
LVL 5

Assisted Solution

by:PointyEars
PointyEars earned 25 total points
ID: 10841152
ozo (as usual!) has been quick, good, and to the point (pun intended), but perhaps you would like to know a bit more about the solution.

A generic vector with origin in (x1,y1,z1) has the following components:
  (x-x1,y-y1,z-z1)

A vector corresponding to the radius of the sphere ending on (x1,y1,z1) has components:
  (x1-x0,y1-y0,z1-z0)

Two vectors are perpendicular when their scalar product is zero.  If you apply this to the two vectors just defined you get ozo's formula:
  (x-x1)(x1-x0)+(y-y1)(y1-y0)+(z-z1)(z1-z0)=0

You only need to remove the parentheses to get the equation of a plane in the usual form:
  a*x + b*y + c*z + d = 0
This plane passes through (x1,y1,z1) and, being perpendicular to the radius ending in the same point, is tangent to the sphere.
0
 
LVL 1

Author Comment

by:bbangerter
ID: 10852047
Thanks ozo and thanks PointyEars for giving me that connection between ozos formula and the standard plane equation.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adjust number proportionately 12 71
Homework Help 5 87
Odds of picking games correctly 4 89
Dual bridge protection 18 105
A Guide to the PMT, FV, IPMT and PPMT Functions In MS Excel we have the PMT, FV, IPMT and PPMT functions, which do a fantastic job for interest rate calculations.  But what if you don't have Excel ? This article is for programmers looking to re…
How to Win a Jar of Candy Corn: A Scientific Approach! I love mathematics. If you love mathematics also, you may enjoy this tip on how to use math to win your own jar of candy corn and to impress your friends. As I said, I love math, but I gu…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 members asked questions and received personalized solutions in the past 7 days.

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

Join & Ask a Question