setSpot method

Rect setSpot(
  1. num x,
  2. num y,
  3. Spot spot
)

Modify this Rect so that a given Spot is at a given (x,y) point using this Rect's size. Return this rectangle for which the spot is at that point, without modifying the size.

The result is meaningless if Spot#isNoSpot is true. @param {number} x the point where the spot should be. @param {number} y the point where the spot should be. @param {Spot} spot a Spot; Spot#isSpot must be true. @return {Rect} this.

Implementation

_i3.Rect setSpot(
  _i2.num x,
  _i2.num y,
  _i3.Spot spot,
) =>
    _i4.callMethod(
      this,
      'setSpot',
      [
        x,
        y,
        spot,
      ],
    );