DotProd(Dot Product) is used to calculate the dot (or scalar) product of two pos vectors.
Arguments
DotProd (Vector1 Vector2)
Vector1 and Vector2 are both data types pos.
I do not see how it is possible to describe a vector with a single pos.
I am using this calculation instead:
AB_CD_dotproduct := ((pos_B.x - pos_A.x) * (pos_D.x - pos_C.x)) + ((pos_B.y - pos_A.y) * (pos_D.y - pos_C.y));