A 3D Vector is the direction and magnitude. You need to restate your question with more information on what you are trying to do.
Try this site for more information on vectors:
Vectors
Do you mean the angles/sphere coords?
Because
x = r*cos(u)*sin(v)
y = r*sin(u)*sin(v)
z = r*cos(v)
you get
r = sqrt(x^2 + y^2 + z^2)
u = arctan(y/x)
v = arctan(z/sqrt(x^2+y^2))
Visit our homepage: www.rarebyte.de.st
GA
Because
x = r*cos(u)*sin(v)
y = r*sin(u)*sin(v)
z = r*cos(v)
you get
r = sqrt(x^2 + y^2 + z^2)
u = arctan(y/x)
v = arctan(z/sqrt(x^2+y^2))
Visit our homepage: www.rarebyte.de.st
GA
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement