scaleToleranceForGeometry MethodStatic
Scale the given distance tolerance as appropriate for comparing the coordinates of geom.
- Scaling tolerances by geometry size helps account for the decreased floating point resolution between large coordinates. While using such scaled tolerances can enable more tolerance-sensitive constructions to succeed on far-flung geometries, on extremely small geometries at extremely large coordinate magnitudes, geometric constructions are generally more accurate when applied to the geometry temporarily translated to the origin.
scaleToleranceForGeometry(geom: GeometryQuery | GeometryQuery[], distanceTolerance: number, options?: ScaledToleranceOptions): number
@returns a distance tolerance >= distanceTolerance
| Parameter | Type | Description |
|---|---|---|
| geom | GeometryQuery | GeometryQuery[] | geometry to measure |
| distanceTolerance | number | positive input distance tolerance to examine |
| options | ScaledToleranceOptions | bundle of options (minimumTolerance and relativeTolerance are ignored) |
Returns - number
a distance tolerance >= distanceTolerance
Defined in
- curve/GeometryQuery.ts Line 195
Last Updated: 24 September, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.