sphere_to_latlong
#
- hypercoil.functional.sphere.sphere_to_latlong(coor: Tensor) Tensor [source]#
Convert spherical coordinates from normal vector format to latitude/ longitude format. Note this only works for 2-spheres as of now.
- Dimension:
Input : \((*, 3)\) Output : \((*, 2)\)
- Parameters:
- coorTensor
Tensor containing 3-tuple coordinates indicating x, y, and z values of each point on a sphere whose centre is the origin.
- Returns:
- coorTensor
Tensor containing 2-tuple coordinates indicating the latitude and longitude of each point.