Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Vector Magnitude Equation


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 hellz   Members   -  Reputation: 356

Like
0Likes
Like

Posted 23 August 2004 - 12:33 AM

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

Sponsor:

#2 davepermen   Members   -  Reputation: 1017

Like
0Likes
Like

Posted 23 August 2004 - 12:34 AM

sqrt(90) == sqrt(9*10) == sqrt(9) * sqrt(10) == 3 * sqrt(10)
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud


#3 hellz   Members   -  Reputation: 356

Like
0Likes
Like

Posted 23 August 2004 - 12:37 AM

Ahhh, that makes sense. Thanks very much, and do you get the award for the fastest reply, or what. [grin]

-hellz




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS