# Module: tfg.math.math_helpers

<br />

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

This module contains math routines that are shared by across different modules.

## Functions

[`cartesian_to_spherical_coordinates(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/math_helpers/cartesian_to_spherical_coordinates): Function to transform Cartesian coordinates to spherical coordinates.

[`double_factorial(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/math_helpers/double_factorial): Computes the double factorial of `n`.

[`factorial(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/math_helpers/factorial): Computes the factorial of `n`.

[`spherical_to_cartesian_coordinates(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/math_helpers/spherical_to_cartesian_coordinates): Function to transform Cartesian coordinates to spherical coordinates.

[`square_to_spherical_coordinates(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/math/math_helpers/square_to_spherical_coordinates): Maps points from a unit square to a unit sphere.