Jump to content
  • Advertisement
Sign in to follow this  
Jcoose

Dot Product Confusion

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

It's my understand that given two vectors (A & B ) the dot product should be equal to the magnitude of the project of A onto B...

However in this example (and any other I can find):

http://www.falstad.com/dotproduct/

The dot product is double what I would expect it to be. The magnitude of the projection of A onto B (yellow line) in this example is 0.5, but its reported as 1


What am I missing? Edited by Jcoose

Share this post


Link to post
Share on other sites
Advertisement
The projection of A onto B has length |A| cos(theta), which is dot(A,B)/|B| = 1/sqrt(2). Does that help?

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!