function getPositionsOfRotatedOrigin(origin, pointer, angle) {
  const sx = origin.x;
  const sy = origin.y;
  const px = pointer.x;
  const py = pointer.y;
  const r = (angle * Math.PI) / 180;
  const rx = (px - sx) * Math.cos(r) - (py - sy) * Math.sin(r) + sx;
  const ry = (px - sx) * Math.sin(r) + (py - sy) * Math.cos(r) + sy;

  return {
    originX: sx > rx ? 'right' : 'left',
    originY: sy > ry ? 'bottom' : 'top',
  };
}
Get the positions of ratated origin by the pointer value
@param {{x: number, y: number}} origin - Origin value
@param {{x: number, y: number}} pointer - Pointer value
@param {number} angle - Rotating angle
@returns {Object} Postions of origin
@ignore