annotation_layout_engine library

Classes

AnnotationGeoCache
Caches each annotation's bearing and distance from the user, which only change when the user or the annotation moves, instead of recomputing them for every annotation on every frame. Keep one instance per view and pass it to each AnnotationLayoutEngine.layout call.
AnnotationLayoutConfig
Configuration for AnnotationLayoutEngine.layout.
AnnotationLayoutEngine
Pure Dart geometry engine: turns raw sensor data and a list of ArAnnotation into the subset that is visible, positioned and de-collided on screen.
AnnotationLayoutResult
Result of AnnotationLayoutEngine.layout: the annotations currently visible, positioned on screen and de-collided, together with the field-of-view status used to compute them.