interface DistanceOptions<T extends boolean> {
    details?: T;
    edge?: boolean;
}

Type Parameters

  • T extends boolean

Properties

Properties

details?: T

Return details from the distance calculation. Default is false.

edge?: boolean

Calculate the distance from this geometry to the nearest edge of the target geometry. Default is true. If true, calling distanceTo from a geometry that is wholly contained within the target will result in a non-zero distance. If false, whenever geometries intersect, calling distanceTo will return 0. If false, details cannot be returned.