ObserverTargetPairs

constructor(observerPositions: Iterable<LineOfSightPosition>, targetPositions: Iterable<LineOfSightPosition>)

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.

Since

300.0.0

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.


constructor(pairs: Iterable<ObserverTargetPair>)

Creates an arbitrary arrangement of observer and target pairs.

Since

300.0.0

Parameters

pairs

Observer and target positions for the LineOfSightParameters. If this is empty, LineOfSightFunction.evaluate will return an empty set of results.