const x = constrain(this.x, Math.min(start.x, end.x), Math.max(start.x, end.x));