The sample app should demonstrate this then. And yeah then you're going to need to floor the origin when you center.