interface RulerMeasurementSegment {
    ray: Ray;
    label: PreciseText;
    distance: number;
    cost: number;
    cumulativeDistance: number;
    cumulativeCost: number;
    history: boolean;
    first: boolean;
    last: boolean;
    animation: object;
}

Properties

ray: Ray

The Ray which represents the point-to-point line segment

The text object used to display a label for this segment

distance: number

The measured distance of the segment

cost: number

The measured cost of the segment

cumulativeDistance: number

The cumulative measured distance of this segment and the segments before it

cumulativeCost: number

The cumulative measured cost of this segment and the segments before it

history: boolean

Is this segment part of the measurement history?

first: boolean

Is this segment the first one after the measurement history?

last: boolean

Is this segment the last one?

animation: object

Animation options passed to TokenDocument#update