projection.tools

projection.tools.stereographic_projection(coordinates)

Computes the stereographic projection of a point cloud in RN to a point cloud in R(N1).

Parameters:

coordinates (ndarray) – The point coordinates in RN.

Raises:

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

Returns:

Returns the point coordinates in R(N1).

Return type:

ndarray