circle_utils#
Smallest enclosing circle and convex hull area for complex-valued point sets.
- matviz.circle_utils.cget_area(z)[source]#
Compute the convex hull area of complex-valued points.
- Parameters:
- zcomplex array-like
Points as complex numbers (real=x, imag=y). NaN values are removed.
- Returns:
- float
Convex hull area, or 0 if fewer than 4 unique points.
- matviz.circle_utils.cmake_circle(z)[source]#
Find the smallest enclosing circle, returning complex center and radius.
- Parameters:
- zcomplex array-like
Points as complex numbers. NaN values are removed.
- Returns:
- z_centercomplex
Center of the enclosing circle.
- rfloat
Radius.