摘要:
A Dot product is a very useful tool in both mechanics and 3D graphics. It calculates the cosine of the angle between two vectors. It is used in the lighting calculations and backface removal in 3D gr... 阅读全文
posted @ 2009-11-14 12:11
Chris Cai
阅读(503)评论(0)推荐(0)
摘要:
This small operation calcuates the distance between two points. The routine can work in any number of dimensions, so you cold apply it to 2D or 3D. In 2D Define your two points. Point 1 at (x1, y1) a... 阅读全文
posted @ 2009-11-14 12:06
Chris Cai
阅读(360)评论(0)推荐(0)
摘要:
The world is an unpredictable place. Even more so than Mr Gump's box of choclates. It would be terribly boring of there was only 1 shape of tree in the world, and every one looked the same. Likewise, ... 阅读全文
posted @ 2009-11-14 12:06
Chris Cai
阅读(325)评论(0)推荐(0)
摘要:
Dot Prodcut The dot product (inner product) of two vectors is a measure of how similar the two vectors are (how much one is projected onto the other), multiplied by the magnitudes. Two vectors that ar... 阅读全文
posted @ 2009-11-14 11:53
Chris Cai
阅读(491)评论(0)推荐(0)