Jump to content
  • Advertisement
Sign in to follow this  
hymerman

Rearranging a cross product

This topic is 3628 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

Hi all, simple question with possibly a not-so-simple answer. With three vectors, A, B and C, I have this equation and I want to find A: A x B = C A = ? Any ideas how I'd do that?

Share this post


Link to post
Share on other sites
Advertisement
If you have no other conditions, this problem is not well posed as there is no unique solution. C is perpendicular to the plane with A and B, and has the length |A|*|B|*sin( angle between A and B ). If you have C, you know the plane in which A should lay (the plane perpendicular to C). But the direction and length of A both determine the length of C. So you get many solutions, with the length of A and the angle between A and B being related to each other.

Share this post


Link to post
Share on other sites
Quote:
Original post by hymerman
Hi all, simple question with possibly a not-so-simple answer. With three vectors, A, B and C, I have this equation and I want to find A:

A x B = C

A = ?

Any ideas how I'd do that?


Expand it out and solve the system of linear equations?

There might be one but I don't remember a formula that negates B.

Share this post


Link to post
Share on other sites
Quote:
Original post by dietepiet
If you have no other conditions, this problem is not well posed as there is no unique solution.


Balls. That explains why I've been sat here scratching my head waving around pens sellotaped together at right-angles for the past three hours.

I'll have to find another way, thanks very much dietepiet :)

Share this post


Link to post
Share on other sites
If you know that the vectors are all perpendicular, as in many coordinate systems, and you know the length of B and C, your problem is well posed and there is a unique solution. Then A is just perpendicular to both B and C and has length |C|/|B|.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!