Dot Product 101

Started by
3 comments, last by akaitora 8 years, 11 months ago

Hey guys!

I wrote an article on the dot product. Hopefully it will help someone out.

http://xdpixel.com/dot-product-101/

xdpixel.com - Practical Computer Graphics

Advertisement

and why is this not a Gamedev article too? It looks really nice, by the way.

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

Hey guys!

I wrote an article on the dot product. Hopefully it will help someone out.

http://xdpixel.com/dot-product-101/

The "Calculate the Length of a Vector Efficiently" section has a mismatch between the description and the 2nd code sample.

Description text wants enemy to fire if within (i.e. less than) 4 units from player.

Code sample outputs wanting to fire if distance is greater than 4 units from player.

Would expect/suggest description text to state "If the enemy is at least 4 units away from the player".

Edit: Clarified which code sample, as there are 2 in the section.

Hello to all my stalkers.

Moving. This does not belong in For Beginners.

From the mandatory reading for For Beginners, it is a place for beginners to post questions, not a place to post tutorials aimed at beginners.

Also, this is a cross post. Please don't cross post in the forum.

@Lactose, good catch! It has now been corrected!

@frob, fair enough.

xdpixel.com - Practical Computer Graphics

This topic is closed to new replies.

Advertisement