position manager: adding x and y computation

And using floats instead of doubles