Antkeeper  0.0.1
Functions
geom::cartesian Namespace Reference

Functions which operate on Cartesian (rectangular) coordinates. More...

Functions

template<class T >
math::vec3< T > to_spherical (const math::vec3< T > &v)
 Converts Cartesian (rectangular) coordinates to spherical coordinates. More...
 

Detailed Description

Functions which operate on Cartesian (rectangular) coordinates.

Function Documentation

◆ to_spherical()

template<class T >
math::vec3< T > geom::cartesian::to_spherical ( const math::vec3< T > &  v)

Converts Cartesian (rectangular) coordinates to spherical coordinates.

Parameters
vCartesian coordinates.
Returns
Spherical coordinates, in the ISO order of radial distance, polar angle (radians), and azimuthal angle (radians).
See also
geom::coordinates::spherical

Definition at line 43 of file cartesian.hpp.