Renamed center to (xOrigin, yOrigin)