sphere_to_square#

de_ebsd.core.sphere_to_square(v, eps=1e-12)[source]#

Unit vectors (…, 3) to square Lambert coordinates (…, 2), book units.

Matches kikuchipy _vector2lambert (validated against EMsoft). Both hemispheres map onto the same square through |z|.