It won't actually detract from the y coordinate, and your code is cluttered. Aside from the stylistic understanding the code is a valid implementation.