How to represent an edge in 3D coordinate systems?

Started by
4 comments, last by Paradigm Shifter 10 years, 8 months ago

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

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.

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

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

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

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.

Pick one. You can either pick the same axis all the time, cycle through the axes, or pick it at random.

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

This topic is closed to new replies.

Advertisement