pymead.utils.geometry#

Functions

calculate_area_triangle_heron(a, b, c)

Heron's formula for area of a triangle

check_airfoil_self_intersection(coords)

Determines whether the airfoil intersects itself using the is_simple() function of the shapely library.

convert_numpy_array_to_shapely_LineString(arr)

Converts a 2-D numpy array of \(x\)-\(y\) coordinates to a LineString.

convert_numpy_array_to_shapely_points(arr)

Converts a 2-D numpy array of \(x\)-\(y\) coordinates to the format used by the shapely library.

map_angle_m180_p180(v)

Maps an angle from any value in radians to the range \([-pi, pi]\)