Package-level declarations
Types
Prefers fused and falls back to the platform rotation vector, or the geomagnetic one on devices without a gyroscope. Running hot, either source is slowed.
A chip's footprint in view angles: centered on bearingDeg, rising heightDeg from elevationDeg.
The back camera's focal length and the size of the sensor area the preview shows, both in millimeters.
Where the back camera points, as the screen's right, up and forward axes in east-north-up, referenced to magnetic north.
calibration is the platform's sensor status, 3 high down to 0 unreliable, and -1 before the first reading. headingAccuracyDeg is the sensor's own estimate of its heading error, null when it gives none. trueNorth is true when the source already applied the declination, so the pose is referenced to true north rather than magnetic. thermal is how hot the phone runs, so the view can shed work before the system throttles it.
A point on a geofence's edge as seen from the phone. bearingDeg is magnetic, like the camera's.
An orientation fusion outside the platform sensors, such as Play services' Fused Orientation Provider. Each flavor binds one; NONE is the flavor without it, and the camera pose falls back to the rotation vector.
What the finder is looking for and how far away it is.
What a chip stands for. key is stable across updates and unique across both kinds.
A survey square laid on the ground around the phone. corners are east and north offsets in metres, turned to magnetic north like the camera pose, so they project with the same math as everything else in the view.
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.
A target too close to point at: the phone sits inside its uncertainty circle. The radar plots it by offset instead, eastM and northM from the phone, inside a ring of radiusM. bearingDeg is magnetic, like the camera's.
A point on a path through the air, seen from the phone. bearingDeg is magnetic, like the camera's. atViewer is true when the point is inside the phone's own accuracy, so the path starts from the viewer rather than a direction.
The phone's barometer, in hectopascals, while collected; it completes without a value on a phone that has none.
fixTimeSec is absolute, so ages read from it stay current while the track itself is unchanged.
A node's position history to draw as breadcrumbs.
What a track covers: how many points, from its oldest timed fix to its newest.
Properties
The level stackLevels gives a chip that would need more than its cap: it is counted, not drawn.
The camera's tilt above the horizontal, in degrees; negative when it points at the ground.
Functions
Unit vector toward a bearing (degrees from north, clockwise) at an elevation above the horizontal.
Where along its pinned edge a target sits, in pixels from the view center: across the top and bottom by how far it is to the side, up and down the sides by how far it is above or below. Positive is rightward and upward.
Half the vertical angle a target distanceM away could lie within, from a vertical uncertainty of verticalM. When the target has no elevationKnown, its level placement is a guess, so the band is at least UNKNOWN_ELEVATION_SPREAD_DEG tall.
The back camera's live preview, filling modifier; reports intrinsics once the camera is bound, and onAvailable false when it cannot bind or the camera fails, true once it opens. onStill gets the bound camera's still, or null once it is released or where there is none.
The back camera's live preview, filling modifier; reports intrinsics once the camera is bound, and onAvailable false when it cannot bind or the camera fails, true once it opens. onStill gets the bound camera's still, or null once it is released or where there is none.
The back camera's live preview, filling modifier; reports intrinsics once the camera is bound, and onAvailable false when it cannot bind or the camera fails, true once it opens. onStill gets the bound camera's still, or null once it is released or where there is none.
Which way a chip at level steps aside from its point: none at level 0, then right and left in turn.
Where to pin a target that falls outside the view, chosen the way someone finds it: a target well to the side, or behind, pins to the side to turn toward (yawDeg, positive clockwise), and one roughly ahead pins top or bottom to tilt toward (pitchDeltaDeg, positive up). Choosing on the screen's own axes instead puts a node behind the user on the bottom edge while the camera points at the ground, which reads as inverted. previous holds through small wobbles: near SIDE_YAW_DEG and near straight behind, where the side would otherwise flip.
Android 10 and later only, where saving to Pictures needs no storage permission.
This pose turned clockwise about the vertical by deg.
How many rows each chip is lifted so none overlaps an earlier one, in list order. Computed from view angles rather than screen positions, so it holds still while the phone moves and changes only when the targets do. A lifted chip also steps aside by its half width plus leaderRunDeg, to the side leaderSide gives, so its leader leans rather than rising plumb; a chip that would need more than maxLevel rows gets OVERFLOW_LEVEL.
The affine map, as a row-major 3x3, from view pixels to the pixels of a camera buffer whose crop the view shows rotated clockwise by rotationDegrees and center-cropped to fill, the way the preview fills the mesh view.