# v3d.math

[[[Source]]](https://github.com/google-research/visu3d/tree/main/visu3d/math/__init__.py)

```{eval-rst}
.. automodule:: visu3d.math
  :no-members:
```

## Symbols


### Function

|  |  |
--- | ---
[v3d.math.carthesian_to_spherical](carthesian_to_spherical) | Convert (x, y, z) to (r, theta, phi).
[v3d.math.euler_to_rot](euler_to_rot) | Creates a 3x3 matrix from the euler radian angles.
[v3d.math.interp_img](interp_img) | Bilinear interpolation of coordinates from an image.
[v3d.math.interp_points](interp_points) | Spline interpolation between x-d Points.
[v3d.math.is_orth](is_orth) | Check if the matrix is a valid orthogonal matrix `O(3)`.
[v3d.math.is_rot](is_rot) | Checks if a matrix is a valid rotation matrix `SO(3)`.
[v3d.math.rot_to_euler](rot_to_euler) | Extract euler angles from a 3x3 rotation matrix.
[v3d.math.rot_x](rot_x) | Rotation matrix for rotation around X (in radians).
[v3d.math.rot_y](rot_y) | Rotation matrix for rotation around Y (in radians).
[v3d.math.rot_z](rot_z) | Rotation matrix for rotation around Z (in radians).
[v3d.math.spherical_to_carthesian](spherical_to_carthesian) | Convert (r, theta, phi) to (x, y, z).
[v3d.math.subsample](subsample) | Subsample the given DataclassArray.

### Attribute

|  |  |
--- | ---
[v3d.math.DEG2RAD](DEG2RAD) | 
[v3d.math.RAD2DEG](RAD2DEG) | 

```{toctree}
:hidden:

carthesian_to_spherical
spherical_to_carthesian
interp_img
subsample
DEG2RAD
euler_to_rot
is_orth
is_rot
RAD2DEG
rot_to_euler
rot_x
rot_y
rot_z
interp_points
```