Necessary and Sufficient Conditions for Orthonormality of Scaling Vectors