If you know you have not knocked your head then it may be caused by some kind of viral infection which has affected your eye muscles.
If you have a headache as well as the distorted vision go to see your doctor immediately for a proper diagnosis and treatment.
If you don't have a headache and your vision doesn't go back to normal in 24 hours then go and see your doctor anyway.