drawMarker method
Implementation
void drawMarker(
Canvas canvas, List<ArAnnotation> annotations, double radius) {
for (final annotation in annotations) {
final Paint paint = Paint()..color = markerColor;
final distanceInRadar =
annotation.distanceFromUser / maxDistance * radius;
final alpha = pi - annotation.azimuth.toRadians;
final dx = (distanceInRadar) * sin(alpha);
final dy = (distanceInRadar) * cos(alpha);
final center = Offset(dx + radius, dy + radius);
canvas.drawCircle(center, 3, paint);
}
}