# Module: tfg.math.spherical_harmonics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/math/spherical_harmonics.py) |

This module implements routines required for spherical harmonics lighting.

## Functions

[`evaluate_legendre_polynomial(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/evaluate_legendre_polynomial): Evaluates the Legendre polynomial of degree l and order m at x.

[`evaluate_spherical_harmonics(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/evaluate_spherical_harmonics): Evaluates a point sample of a Spherical Harmonic basis function.

[`generate_l_m_permutations(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/generate_l_m_permutations): Generates permutations of degree l and order m for spherical harmonics.

[`generate_l_m_zonal(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/generate_l_m_zonal): Generates l and m coefficients for zonal harmonics.

[`integration_product(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/integration_product): Computes the integral of harmonics1.harmonics2 over the sphere.

[`rotate_zonal_harmonics(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/rotate_zonal_harmonics): Rotates zonal harmonics.

[`tile_zonal_coefficients(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/spherical_harmonics/tile_zonal_coefficients): Tiles zonal coefficients.