for what angle A and B will A.B be equal to B.A

For any two vectors A and B, A.B will always be equal to B.A if the vectors are perpendicular to each other, i.e., the angle between them is 90 degrees or π/2 radians.