Question: how to check if two vectors are perpendicular?
Answer: Two vectors A and B are parallel if and only if they are scalar multiples of one another. A = k B , k is a constant not equal to zero. Two vectors A and B are perpendicular if and only if their scalar product is equal to zero.