Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

How to represent an edge in 3D coordinate systems?

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Vector v1;

Vector v2;

Edge e = v2 - v1;

As this edge is oriented freely in 3D space, How do you know which x,y,z in these vectors is the major axis?

Thanks

Jack

Share this post


Link to post
Share on other sites
Advertisement

Do you mean which axis out of x, y and z has the longest projection onto it? It would be the coordinate axis with the largest magnitude (absolute value) out of e.x, e.y and e.z.

Share this post


Link to post
Share on other sites

Do you mean which axis out of x, y and z has the longest projection onto it? It would be the coordinate axis with the largest magnitude (absolute value) out of e.x, e.y and e.z.

 

Thanks, that looks simple enough... I am just silly.

Jack

Share this post


Link to post
Share on other sites

Would there be a case where the projections on all three axis have the same magnitude?

How should I decide if this happens?

Thanks

Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites

Of course such a case exists. You just need two vectors whose difference is the same along all axes. What happens then is up to you to decide, we don't know anything about your goals here.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!