Fable 2
|
Lionhead.com
in
Advanced Programming Techniques (forum)
Development (group)
(Entire Site)
Welcome to Lionhead Community
|
Help
Home
Extra
Blogs
Forums
Home
Extra
Blogs
Forums
Lionhead Community
»
Development
»
Advanced Programming Technique...
»
Re: Vector Dot Products
Vector Dot Products
Last post 01-07-2010, 22:43 by
antiprosynthesis
. 3 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
10-20-2006, 19:19
2316987
Xharock
Joined on 10-19-2006
Happy Junior Member
Vector Dot Products
Reply
Quote
OK I'm writing some 3D Math routines for my game engine and I've come across something that's annoying me. I looked up some vector math in a 3D programming book and it gives this forumla to calculate the dot product of two vectors: u . v = ux * vX + uY * vY + uZ * vZ but just down the page it describes it as this: u . v = (Magnitude of u) * (Magnitude of v) * cos Angle between u and v And I can't see how those two are the same. Maths isn't my strong point so any help here would be much appreciated.
Report abuse
10-20-2006, 19:28
2316993
in reply to
2316987
RAVEK
Netherlands
Junior Godlike Member
old karma : 718
Re: Vector Dot Products
Reply
Quote
They are indeed the same.
Read the
section on the proof of the geometric interpretation
in the wikipedia article about the dot product for an explanation. You can read the entire article for a generally better understanding of it, too.
Report abuse
10-20-2006, 19:35
2317000
in reply to
2316987
Xharock
Joined on 10-19-2006
Happy Junior Member
Re: Vector Dot Products
Reply
Quote
Ooo thank you. I shall read that article. Now I've gotta fix these compile errors. Hmm shame they don't do exams on 3D Maths like this in GCSEs... I might be able to get a few extra marks if they did :P
Report abuse
01-07-2010, 22:43
3425382
in reply to
2317000
antiprosynthesis
Joined on 01-08-2010
Rookie
Re: Vector Dot Products
Reply
Quote
Basically there are two representations of vectors (can also be applied to complex numbers), rectangular and polar. rectangular is simply a set of coordinates, where polar represents the vector based on its length (magnitude) and direction (angle).
Report abuse
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
|
TRUSTe Approved Privacy Statement
|
Code of Conduct