get_unit_vectors

tfv.geometry.get_unit_vectors(xv, yv)

Gets unit tangent and unit normal vectors for line segments

Parameters:
  • xv (1D np.ndarray) – X coordinate of polyline

  • yv (1D np.ndarray) – Y coordinate of polyline

Returns:

uv – Unit tangent and unit normal vectors

Return type:

tuple (ut, un)