Skip to contents

Transformations

These functions allow you to make tranformations to your coordinate system, such as translations, rotations or conversion to polar coordinates.

transform_to_egocentric()
Transform coordinates to an egocentric reference frame
translate_coords()
Translate coordinates in Cartesian space
rotate_coords()
Rotate coordinates in Cartesian space
map_to_cartesian()
Map to Cartesian coordinates
map_to_polar()
Map from Cartesian to polar coordinates
map_to_cylindrical()
Map from Cartesian to cylindrical coordinates
map_to_spherical()
Map from Cartesian to spherical coordinates
cartesian_to_rho()
Radius (rho) from Cartesian coordinates
cartesian_to_phi()
Azimuth (phi) from Cartesian coordinates
cartesian_to_theta()
Inclination (theta) from Cartesian coordinates
polar_to_x()
Cartesian x-coordinate from polar coordinates
polar_to_y()
Cartesian y-coordinate from polar coordinates
spherical_to_z()
Cartesian z-coordinate from spherical coordinates