Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Functions
Tools Namespace Reference

Tools to convert spherical to cartesian coordinates. More...

Functions

void fromRadianToCarthesien (decimal tetha, decimal phi, vec3 &result)
 Convert spherical coordinates to cartesian coordinates In this function : More...
 
void fromRadianToCarthesien2 (decimal tetha, decimal phi, vec3 &result)
 Convert spherical coordinates to cartesian coordinates In this function : More...
 

Detailed Description

Tools to convert spherical to cartesian coordinates.

Function Documentation

◆ fromRadianToCarthesien()

void Tools::fromRadianToCarthesien ( decimal  tetha,
decimal  phi,
vec3 &  result 
)

Convert spherical coordinates to cartesian coordinates In this function :

  • theta is the polar angle where 0 is on the equator
  • phi is the equatorial angle This function is used by samplers that generates rays

Definition at line 21 of file UnitConverter.cpp.

Here is the caller graph for this function:

◆ fromRadianToCarthesien2()

void Tools::fromRadianToCarthesien2 ( decimal  tetha,
decimal  phi,
vec3 &  result 
)

Convert spherical coordinates to cartesian coordinates In this function :

  • theta is the polar angle where 0 is on north pole
  • phi is the equatorial angle This function is used by diffraction events to generate secondary rays

Definition at line 28 of file UnitConverter.cpp.

Here is the caller graph for this function: