map2loop.utils#
Functions
|
Calculate the endpoints of a line segment given a start point, azimuth angle, distance, and bounding box. |
|
Creates a list of shapely Point objects from a list, tuple, or numpy array of coordinates. |
|
Finds the strike of a line segment (contact) closest to a given point (structural measurement). |
|
Setup the grid for interpolation |
|
Generate a list of unique random hex color codes. |
|
Convert a hex color code to an RGBA tuple. |
|
Converts a multiline geometry to a single line geometry. |
|
Calculates the dip and dip direction from a normal vector. |
Rebuilds the basal contacts as linestrings --> sampled_basal_contacts, based on the existing sampled contact points. |
|
|
Calculates the strike-dip vector from the given strike and dip angles. |