BetweenMeasurementResult#

Interface BetweenMeasurementResult

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

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

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: [Vector3, Vector3]

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.

The most specific measurement targets used for the minimal distance calculation, in the same order as points. If a target was passed as a Shape or Node, the entry is the resolved face or edge (class TOPOLOGY). Otherwise, it is the target passed to measureBetween.