Vertical lines are not functions but horizontal lines are functions.
All straight line functions except constant functions are one-to- one functions.