Line distance
- class limap.base.LineDistType
- Enum of supported line distance types. - Members: - ANGULAR - ANGULAR_DIST - ENDPOINTS - MIDPOINT - MIDPOINT_PERPENDICULAR - OVERLAP - BIOVERLAP - OVERLAP_DIST - PERPENDICULAR_ONEWAY - PERPENDICULAR - PERPENDICULAR_SCALEINV_ONEWAY - PERPENDICULAR_SCALEINV - ENDPOINTS_SCALEINV_ONEWAY - ENDPOINTS_SCALEINV - INNERSEG 
- limap.base.compute_distance_2d(l1: _limap._base.Line2d, l2: _limap._base.Line2d, type: _limap._base.LineDistType) float
- Compute distance between two - Line2dusing the specified line distance type.- Parameters:
- l1 ( - Line2d) – First 2D line segment
- l2 ( - Line2d) – Second 2D line segment
- type ( - LineDistType) – Line distance type
 
- Returns:
- The computed distance 
- Return type:
- float 
 
- limap.base.compute_distance_3d(l1: _limap._base.Line3d, l2: _limap._base.Line3d, type: _limap._base.LineDistType) float
- Compute distance between two - Line3dusing the specified line distance type.- Parameters:
- l1 ( - Line3d) – First 3D line segment
- l2 ( - Line3d) – Second 3D line segment
- type ( - LineDistType) – Line distance type
 
- Returns:
- The computed distance 
- Return type:
- float 
 
- limap.base.compute_pairwise_distance_2d(lines: List[_limap._base.Line2d], type: _limap._base.LineDistType) numpy.ndarray[numpy.float64[m, n]]
- Compute pairwise distance among a list of - Line2dusing the specified line distance type.- Parameters:
- lines (list[ - Line2d]) – List of 2D line segments
- type ( - LineDistType) – Line distance type
 
- Returns:
- The computed pairwise distance matrix 
- Return type:
- np.array
 
- limap.base.compute_pairwise_distance_3d(lines: List[_limap._base.Line3d], type: _limap._base.LineDistType) numpy.ndarray[numpy.float64[m, n]]
- Compute pairwise distance among a list of - Line3dusing the specified line distance type.- Parameters:
- lines – List of 3D line segments 
- Returns:
- The computed pairwise distance matrix 
- Return type:
- np.array