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

Last Updated: 17 December, 2024