/**
 * Types for the [DistanceMeasurementAnalysisView2D](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-DistanceMeasurementAnalysisView2D.html).
 *
 * @since 5.0
 */
import type { Length } from "../../../core/quantity.js";
import type { MeasurementMode } from "../types.js";

/** Result obtained from an [DistanceMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DistanceMeasurementAnalysis.html). */
export interface DistanceMeasurementResult {
  /** Length of the polyline. */
  length: Length;
  /**
   * Describes the mode in which the measurement is computed.
   *   In `euclidean` mode, length is computed from a flat polyline with straight segments in
   *   a [ECEF](https://en.wikipedia.org/wiki/ECEF) coordinate system.
   *   In `geodesic` mode, the length is computed from a geodesic polyline in a WGS84 ellipsoid.
   */
  mode: MeasurementMode;
}

export interface DistanceMeasurementPlacementResult {}