0.6.0
Loading...
Searching...
No Matches
mod_cg3_points Module Reference

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.
 

Function/Subroutine Documentation

◆ cg3_direction_to_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.

Parameters
[in]directionunit vector
[out]anglesspherical angles (θ,φ)

◆ cg3_spherical_angles_to_direction()

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.

Parameters
[in]anglesspherical angles (θ,φ)
[out]directionresulting unit vector