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
Dot Product of the Vectors
-
- Gnoblar
- Posts: 3
- Joined: Wed Aug 01, 2012 3:42 pm
Re: Dot Product of the Vectors
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
Abs will give you a positive number representing the distance to zero from that number.
abs(-3) == 3
abs(5) == 5