HudTarget

data class HudTarget(val subject: HudSubject, val bearingDeg: Double, val elevationDeg: Double, val distanceM: Double, val distanceText: String, val precisionHalfAngleDeg: Double?, val elevationSpreadDeg: Double, val elevationKnown: Boolean, val positionAgeSec: Long?, val focused: Boolean, val rise: HudRise? = null)(source)

A positioned node or waypoint as the HUD draws it. bearingDeg is magnetic, to match the camera pose, and precisionHalfAngleDeg spans the target's uncertainty circle widened by the phone's own fix accuracy, or is null when neither is known. elevationKnown is false when the target and the phone share no altitude frame, so the target sits level with the phone.

Constructors

Link copied to clipboard
constructor(subject: HudSubject, bearingDeg: Double, elevationDeg: Double, distanceM: Double, distanceText: String, precisionHalfAngleDeg: Double?, elevationSpreadDeg: Double, elevationKnown: Boolean, positionAgeSec: Long?, focused: Boolean, rise: HudRise? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Half the vertical angle the target could lie within, from both altitudes' accuracy.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How far above or below the phone the target is, when that is known and beyond its own uncertainty.

Link copied to clipboard