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

Last Updated: 30 November, 2023