Changed toIntPoint2D from a property to a function.