Local location around which to get the closest image. Note that 3D vector will sort by absolute distance, so if you want orthographic, pass 2D vector.
Optional
radius: numberRadius limit [m].
Optional
smes: SiteModelEntityInterface[]The site model entities to restrict the search to.
Pass an undefined
item in the array to include images without a site model entity.
The ImageInterface if found, otherwise rejects.
Find the closest non-hidden image to the target point. The target point is located in distance (dir * dist) in the direction of view.
The starting image from which to search.
The current viewing direction.
The direction modifier: +1 for forward, -1 for backward.
How far away to move to approximately.
The nearest image in the direction at the distance, or reject if none found.
This method will look for the closest image on the same floor as the location given. If not within a floor the closest image without a SiteModelEntityInterface will be returned.
The local location for which to return the nearest image, on the same floor.
Optional
radius: numberOptionally only within a radius [m].
The ImageInterface if found, otherwise rejects.
Generated using TypeDoc
Finds the closest image for the given local position. Optionally with restriction to the given site model entities (or none if the array contains
undefined
). Fails if no image is found.