Quran 2:144 commands turning the face toward the Sacred Mosque. The term “shatr” denotes direction.
When the Ka'bah is visible, its exact position is relevant; at distance, the direction of prayer must be determined. Deliberate deviation without excuse conflicts with the condition of orientation.