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.
Printable View
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) isQuote:
Originally Posted by shiva kiran
[(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