split (point) {
    const newEvents = []
    const alreadyLinked = point.events !== undefined

    const newLeftSE = new SweepEvent(point, true)
    const newRightSE = new SweepEvent(point, false)
    const oldRightSE = this.rightSE
    this.replaceRightSE(newRightSE)
    newEvents.push(newRightSE)
    newEvents.push(newLeftSE)
    new Segment(newLeftSE, oldRightSE, this.ringsIn.slice())

    // in the point we just used to create new sweep events with was already
    // linked to other events, we need to check if either of the affected
    // segments should be consumed
    if (alreadyLinked) {
      newLeftSE.checkForConsuming()
      newRightSE.checkForConsuming()
    }

    return newEvents
  }
/**
   * Split the given segment into multiple segments on the given points.
   *  * Each existing segment will retain its leftSE and a new rightSE will be
   *    generated for it.
   *  * A new segment will be generated which will adopt the original segment's
   *    rightSE, and a new leftSE will be generated for it.
   *  * If there are more than two points given to split on, new segments
   *    in the middle will be generated with new leftSE and rightSE's.
   *  * An array of the newly generated SweepEvents will be returned.
   *
   * Warning: input array of points is modified
   */
Split the given segment into multiple segments on the given points.
Each existing segment will retain its leftSE and a new rightSE will be
generated for it.
A new segment will be generated which will adopt the original segment's
rightSE, and a new leftSE will be generated for it.
If there are more than two points given to split on, new segments
in the middle will be generated with new leftSE and rightSE's.
An array of the newly generated SweepEvents will be returned.

input array of points is modified
Split the given segment into multiple segments on the given points . Each existing segment will retain its leftSE and a new rightSE will be generated for it . A new segment will be generated which will adopt the original segment ' s rightSE and a new leftSE will be generated for it . If there are more than two points given to split on new segments in the middle will be generated with new leftSE and rightSE ' s . An array of the newly generated SweepEvents will be returned . input array of points is modified
split (point) {
    const newEvents = []
    const alreadyLinked = point.events !== undefined
    const newLeftSE = new SweepEvent(point, true)
    const newRightSE = new SweepEvent(point, false)
    const oldRightSE = this.rightSE
    this.replaceRightSE(newRightSE)
    newEvents.push(newRightSE)
    newEvents.push(newLeftSE)
    new Segment(newLeftSE, oldRightSE, this.ringsIn.slice())
    if (alreadyLinked) {
      newLeftSE.checkForConsuming()
      newRightSE.checkForConsuming()
    }
    return newEvents
  }
split ( point ) { const newEvents = [ ] const alreadyLinked = point . events !== undefined const newLeftSE = new SweepEvent ( point , true ) const newRightSE = new SweepEvent ( point , false ) const oldRightSE = this . rightSE this . replaceRightSE ( newRightSE ) newEvents . push ( newRightSE ) newEvents . push ( newLeftSE ) new Segment ( newLeftSE , oldRightSE , this . ringsIn . slice ( ) ) if ( alreadyLinked ) { newLeftSE . checkForConsuming ( ) newRightSE . checkForConsuming ( ) } return newEvents }
Split the given segment into multiple segments on the given points.
Split the given segment into multiple segments on the given points .
// in the point we just used to create new sweep events with was already // linked to other events, we need to check if either of the affected // segments should be consumed