ObserverTargetPairs.withManyToMany constructor

ObserverTargetPairs.withManyToMany({
  1. required List<LineOfSightPosition> observerPositions,
  2. required List<LineOfSightPosition> targetPositions,
})

Creates an observer target pair for each combination of the given observer and target positions.

Allows creation of pairs for the following scenarios:

  • One to one: Assess the visibility of one target to one observer.
  • One to many: Assess the visibility of multiple targets to one observer.
  • Many to one: Assess the visibility of one target to multiple observers.
  • Many to many: Assess the visibility of multiple targets to multiple observers.

ObserverTargetPairs.pairs are ordered by observer, then target.

Parameters: