distanceIndexedPointBToSegmentAC MethodStatic
Return perpendicular distance from points[indexB] to the segment from points[indexA] to points[indexC].
- Extrapolation options when the projection is outside of the fraction range [0,1] are:
- false ==> return distance to closest endpoint
- true ==> return distance to extended line segment
- There is no index checking!
distanceIndexedPointBToSegmentAC(points: Point3d[], indexA: number, indexB: number, indexC: number, extrapolate: boolean): number
| Parameter | Type | Description |
|---|---|---|
| points | Point3d[] | |
| indexA | number | |
| indexB | number | |
| indexC | number | |
| extrapolate | boolean |
Returns - number
Defined in
- geometry3d/PointHelpers.ts Line 1118
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.