projection.tools

projection.tools.stereographic_projection(coordinates)

Computes the stereographic projection of a point cloud in \({R^N}\) to a point cloud in \({R^(N-1)}\).

Parameters:

coordinates (ndarray) – The point coordinates in \({R^N}\).

Raises:

ZeroDivisionError – If the last element of coordinates is equal to 1.

Returns:

Returns the point coordinates in \({R^(N-1)}\).

Return type:

ndarray