Returns a point with rounded x,y coordinates. By default uses Math.round to round.
Math.round
toIntegerValues({x:1.234, y:5.567}); // Yields: {x:1, y:6} Copy
toIntegerValues({x:1.234, y:5.567}); // Yields: {x:1, y:6}
toIntegerValues(pt, Math.ceil); // Use Math.ceil to round x,y of `pt`. Copy
toIntegerValues(pt, Math.ceil); // Use Math.ceil to round x,y of `pt`.
Point to round
Rounding function, or Math.round by default
Returns a point with rounded x,y coordinates. By default uses
Math.round
to round.