|
-
Nov 7th, 2007, 02:11 AM
#1
Thread Starter
New Member
drawing a sphere
Consider a point in 3D <x,y,z> as origin . I want to draw an ellipse for that I need to get <x',y',z'> coordinates given some radius .
Can any one write a function or give some mathematical equations for these.
-
Nov 7th, 2007, 05:30 AM
#2
Re: drawing a sphere
 Originally Posted by shiva kiran
Consider a point in 3D <x,y,z> as origin . I want to draw an ellipse for that I need to get <x',y',z'> coordinates given some radius .
Can any one write a function or give some mathematical equations for these.
The equation of an ellipse with origin at (x,y,z) is
[(x' - x)/a]2 + [(y' - y)/b]2 + [(z' - z)/c]2 = 1
where a, b and c are the semiaxes. If you make a = b = c = r (radius) then the eqution simplifies to the case of a sphere:
[(x' - x)/r]2 + [(y' - y)/r]2 + [(z' - z)/r]2 = 1
or
(x' - x)2 + (y' - y)2 + (z' - z)2 = r2
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|