src/util/freehand/FreehandLineFinder.js
/**
   * Constructs a vector from the direction and magnitude of the line from the the line origin to the mouse cursor.
   * @private
   * @method
   *
   * @param {Object} p An array of two points respresenting the line segment.
   * @returns {Object} An array containing the x and y components of the vector.
   */
Constructs a vector from the direction and magnitude of the line from the the line origin to the mouse cursor.
@private
@method

@param {Object} p An array of two points respresenting the line segment.
@returns {Object} An array containing the x and y components of the vector.
Constructs a vector from the direction and magnitude of the line from the the line origin to the mouse cursor . @private @method @param { Object } p An array of two points respresenting the line segment . @returns { Object } An array containing the x and y components of the vector .
_getLineOriginToMouseAsVector(p) {
    const m = [this._mousePoint.x - p[0].x, this._mousePoint.y - p[0].y];
    return m;
  }
_getLineOriginToMouseAsVector ( p ) { const m = [ this . _mousePoint . x - p [ 0 ] . x , this . _mousePoint . y - p [ 0 ] . y ] ; return m ; }
Constructs a vector from the direction and magnitude of the line from the the line origin to the mouse cursor.
Constructs a vector from the direction and magnitude of the line from the the line origin to the mouse cursor .