Houdini math note
Contents
Houdini math note
dot product:Determine the general direction of velocity.(acute angle or obtuse angle)
In order to determine that the Angle between @v and the X-axis is acute or obtuse.
x=(1,0,0)
if (@v dot x) > 0 = +x, else = opposite direction
dot product Find the angle between two vectors.
|
|
@angle=90
Also, it can be written as:
|
|
Similarly, when cos = 0,1, and -1, they are going in the same direction, perpendicular, and opposite.