distanceIndexedPointBToSegmentAC MethodStatic
return perpendicular distance from points[indexB] to the segment points[indexA] to points[indexC].
- extrapolation option when projection is outside of fraction range 0..1 are:
- false ==> measure distance to closest endpoint
- true ==> measure distance to extended line segment. (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 891
Last Updated: 20 June, 2023