Elements.pyECSS.math_utilities.sincos

Elements.pyECSS.math_utilities.sincos(degrees=0.0, radians=None)[source]

Utility function to calculate with one call sine and cosine of an angle in radians or degrees If there is one argument, then assumes that single input is in degrees, otherwise ignores first value and takes second for radians (needs two in that case) It returns the value in radians, first sin then cos

Parameters
  • degrees (float, optional) – [description], defaults to 0.0

  • radians ([type], optional) – [description], defaults to None