Compares direction vectors of two walkers
Syntax: WalkerCompareDir(wa,wb)
WalkerCompareDir(wa,wb)
wa walker a to compare with walker b
wa
wb walker b to compare with walker a
wb
Returns: Returned number reflects the relation between two direction vectors
0 Direction vectors are perpendicular
1 Directions are same
-1 Directions are opposite
Example: WalkerCompareDir(wlka,wlkb)
WalkerCompareDir(wlka,wlkb)
Last updated 6 years ago