Constructor ObserverTargetPairs
ObserverTargetPairs(IEnumerable<ObserverTargetPair>)
Initializes a new instance of the ObserverTargetPairs class.
Declaration
public ObserverTargetPairs(IEnumerable<ObserverTargetPair> pairs)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ObserverTargetPair> | pairs | Observer and target positions for the LineOfSightParameters. If this is empty, EvaluateAsync(CancellationToken) will return an empty set of results. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |
ObserverTargetPairs(IEnumerable<LineOfSightPosition>, IEnumerable<LineOfSightPosition>)
Initializes a new instance of the ObserverTargetPairs class. Creates an observer target pair for each combination of the given observer and target positions.
Declaration
public ObserverTargetPairs(IEnumerable<LineOfSightPosition> observerPositions, IEnumerable<LineOfSightPosition> targetPositions)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<LineOfSightPosition> | observerPositions | Observer positions for the LineOfSightParameters. If this is empty, EvaluateAsync(CancellationToken) will return an empty set of results. |
| IEnumerable<LineOfSightPosition> | targetPositions | Target positions for the LineOfSightParameters. If this is empty, EvaluateAsync(CancellationToken) will return an empty set of results. |
Remarks
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.
Pairs are ordered by observer, then target.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |