function isReverseLeftPositionForFlip(startPointIndex, flipX, flipY) {
  return (
    (((!flipX && flipY) || (!flipX && !flipY)) && startPointIndex === 0) ||
    (((flipX && flipY) || (flipX && !flipY)) && startPointIndex === 1) ||
    (((!flipX && !flipY) || (!flipX && flipY)) && startPointIndex === 2) ||
    (((flipX && !flipY) || (flipX && flipY)) && startPointIndex === 3)
  );
}
Calculate a point line outside the canvas for horizontal.
@param {number} startPointIndex - start point index
@param {boolean} flipX - flip x statux
@param {boolean} flipY - flip y statux
@returns {boolean} flipY - flip y statux