as the cosine of 90° is zero, the dot product of two orthogonal (perpendicular in 2d and 3d) vectors is always zero. moreover, two vectors can be considered orthogonal if and only if their dot product is zero, and they both have a nonzero length. this property provides a simple method to test the condition of orthogonality.