Functions/Subroutines | |
| pure double precision function, dimension(3) | cg3_cross_product (p1, p2) |
| Compute the cross product of two points. | |
| pure subroutine | cg3_direction_to_spherical_angles (direction, angles) |
| Compute the spherical angles from a direction in Cartesian coordinates. | |
| pure subroutine | cg3_spherical_angles_to_direction (angles, direction) |
| Compute the direction in Cartesian coordinates from spherical angles. | |
| pure subroutine mod_cg3_points::cg3_direction_to_spherical_angles | ( | double precision, dimension(3), intent(in) | direction, |
| double precision, dimension(2), intent(out) | angles ) |
Compute the spherical angles from a direction in Cartesian coordinates.
| [in] | direction | unit vector |
| [out] | angles | spherical angles (θ,φ) |
| pure subroutine mod_cg3_points::cg3_spherical_angles_to_direction | ( | double precision, dimension(2), intent(in) | angles, |
| double precision, dimension(3), intent(out) | direction ) |
Compute the direction in Cartesian coordinates from spherical angles.
| [in] | angles | spherical angles (θ,φ) |
| [out] | direction | resulting unit vector |