Dot Product of the Vectors

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
olbr
Kobold
Posts: 30
Joined: Sat Mar 08, 2014 12:47 am

Dot Product of the Vectors

Post by olbr »

I am just interested what is a difference between two methods dotProduct() and absDotProduct(),
is abs giving only module of the dot product of the vectors so all the values are positive independent of the value of cosine of the angle or its something else.

thanks
b1nary
Gnoblar
Posts: 3
Joined: Wed Aug 01, 2012 3:42 pm

Re: Dot Product of the Vectors

Post by b1nary »

Dot product can return a negative number based on the angle with which it is representing.

Abs will give you a positive number representing the distance to zero from that number.

abs(-3) == 3
abs(5) == 5
Post Reply