• Advertisement
Sign in to follow this  

Vector Magnitude Equation

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

Hey guys, I'm reading through 3D Math Primer for Graphics and Game Development, and on page 50 (for those that have the book handy), it gives the equation for calculating the magnitude of a vector. It works great and I understand it properly, bar one thing. Here's the example from the book:
||v|| = sqrt(vx² + vy² + vz²) (for a 3D vector v)

Example:

|| [5, -4, 7] || = sqrt(5² + (-4²) + 7²)
                 = sqrt(25, 16, 49)
                 = sqrt(90)
                 = 3sqrt(10)
                 = 9.4868
I understand it up to the point of sqrt(90) (obviously this works and gives the same result), but how does the author get 3sqrt(10) from all of that? Thanks in advance, -hellz

Share this post


Link to post
Share on other sites
Advertisement
Ahhh, that makes sense. Thanks very much, and do you get the award for the fastest reply, or what. [grin]

-hellz

Share this post


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

  • Advertisement