How do I determine whether a hyperbola opens horizontally or vertically?