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.