BetweenMeasurementResult

Interface BetweenMeasurementResult

The result of a distance and angle measurement between two MeasurementTargets.

interface BetweenMeasurementResult {
    angle?: number;
    distance: number;
    intersection?: MeasurementTarget[];
    points: [[number, number, number], [number, number, number]];
}

Properties

angle?: number

The angle between the two measurement targets if applicable.

distance: number

The distance between the two measurement targets.

  • If the two measurement targets intersect the distance is zero.
intersection?: MeasurementTarget[]

The intersection of the two measurement targets, if existent. Note that the intersection is not available for all MeasurementTargetClass combinations. For details, see the documentation of measureBetween.

points: [[number, number, number], [number, number, number]]

The two 3D points used to calculate the distance.

  • If the two measurement targets intersect the two points are equal.
  • If the two measurement targets intersect and both are from the class MeasurementTargetClass.PLANE the two points are used to describe the intersection line.