setCenter method

dynamic setCenter(
  1. dynamic clientX,
  2. dynamic clientY
)
  • Set _center's x/y coordinates
    • @param {Number} clientX
      • @param {Number} clientY

Implementation

setCenter(clientX, clientY) {
  _center.x = clientX;
  _center.y = clientY;
}