sajis997

08-12-2015, 02:08 AM

Hello forum,

Lets say we have the two vectors a and b.

if their dot product a.b > 0 , it implies that the angle between them is acute and pointing mostly in the same direction.

if a.b == 0. The vectors are perpendicular to each other..

If a.b < 0, the vectors are pointing mostly in the opposite direction.

What if we have the three vector x, y and z. And we have the following condition

if(std::abs(x.dot(y)) < std::abs(x.dot(z)))

{

}

I am trying to visualize the above snippet. Some help would be helpful.

Lets get even more specific . If both x.dot(y) > 0 and x.dot(z) > 0 , but x.dot(y) < x.dot(z), then what can we imply ?

Thanks

Lets say we have the two vectors a and b.

if their dot product a.b > 0 , it implies that the angle between them is acute and pointing mostly in the same direction.

if a.b == 0. The vectors are perpendicular to each other..

If a.b < 0, the vectors are pointing mostly in the opposite direction.

What if we have the three vector x, y and z. And we have the following condition

if(std::abs(x.dot(y)) < std::abs(x.dot(z)))

{

}

I am trying to visualize the above snippet. Some help would be helpful.

Lets get even more specific . If both x.dot(y) > 0 and x.dot(z) > 0 , but x.dot(y) < x.dot(z), then what can we imply ?

Thanks