RangingPosition


public final class RangingPosition


Position of a device during ranging.

Summary

Public constructors

RangingPosition(
    RangingMeasurement distance,
    RangingMeasurement azimuth,
    RangingMeasurement elevation,
    long elapsedRealtimeNanos
)

Public methods

final RangingMeasurement

The azimuth angle in degrees of the ranging device, or null if not available.

final RangingMeasurement

The line-of-sight distance in meters of the ranging device, or null if not available.

final long

The elapsed realtime in nanos from when the system booted up to this position measurement.

final RangingMeasurement

The elevation angle in degrees of the ranging device, or null if not available.

Public constructors

RangingPosition

Added in 1.0.0-alpha10
public RangingPosition(
    RangingMeasurement distance,
    RangingMeasurement azimuth,
    RangingMeasurement elevation,
    long elapsedRealtimeNanos
)

Public methods

getAzimuth

Added in 1.0.0-alpha10
public final RangingMeasurement getAzimuth()

The azimuth angle in degrees of the ranging device, or null if not available. The range is -90, 90.

getDistance

Added in 1.0.0-alpha10
public final RangingMeasurement getDistance()

The line-of-sight distance in meters of the ranging device, or null if not available.

getElapsedRealtimeNanos

Added in 1.0.0-alpha10
public final long getElapsedRealtimeNanos()

The elapsed realtime in nanos from when the system booted up to this position measurement.

getElevation

Added in 1.0.0-alpha10
public final RangingMeasurement getElevation()

The elevation angle in degrees of the ranging device, or null if not available. The range is -90, 90.