#### Archived

This topic is now archived and is closed to further replies.

# Vectors

This topic is 6670 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, How do you calculate the direction of a vector in 3 dimensions? ECKILLER

##### Share on other sites

A 3D Vector is the direction and magnitude. You need to restate your question with more information on what you are trying to do.

Vectors

##### Share on other sites
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))

GA

##### Share on other sites
Thanks ga, i thumbed through a calculus book to see the differant methods to describe its direction and yes spherical coords is the way i wanted.

ECKILLER

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5
frob
12

• 9
• 21
• 13
• 9
• 17
• ### Forum Statistics

• Total Topics
632608
• Total Posts
3007391

×