snapToGridPoint method

Point snapToGridPoint(
  1. Point origin,
  2. Size cellsize
)

Modify this point to be at the nearest point on an infinite grid, given the grid's origin and size of each grid cell. @param {Point} origin the top-left point of one of the grid cells @param {Size} cellsize the size of each grid cell @return {Point} this modified Point @since 1.3

Implementation

_i3.Point snapToGridPoint(
  _i3.Point origin,
  _i3.Size cellsize,
) =>
    _i4.callMethod(
      this,
      'snapToGridPoint',
      [
        origin,
        cellsize,
      ],
    );