ObserverTargetPairs.withManyToMany constructor
- required List<
LineOfSightPosition> observerPositions, - 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:
observerPositions— Observer positions for the LineOfSightParameters. If this is empty, LineOfSightFunction.evaluate will return an empty set of results.targetPositions— Target positions for the LineOfSightParameters. If this is empty, LineOfSightFunction.evaluate will return an empty set of results.