atomscale.core.utils.convert_to_polar_coordinates#
- atomscale.core.utils.convert_to_polar_coordinates(points: ndarray[tuple[Any, ...], dtype[_ScalarT]], origin=(0, 0), scale=1.0) ndarray[tuple[Any, ...], dtype[_ScalarT]][source]
Convert a set of 2D points to polar coordinates with radius and angle.
- Parameters:
points (NDArray) – Numpy array containing a list of points.
origin (tuple[int, int]) – Origin point.
scale (float) – Scaling number.
- Return type:
ndarray[tuple[Any,...],dtype[TypeVar(_ScalarT, bound=generic)]]