neurom.morphmath.segment_radial_dist

neurom.morphmath.segment_radial_dist(seg, pos)[source]

Return the radial distance of a tree segment to a given point

The radial distance is the euclidian distance between the mid-point of the segment and the point in question.

Parameters:
  • seg – tree segment
  • pos – origin to which distances are measured. It must have at lease 3
  • The first 3 components are (components.) –