SinCos#

inline void SinCos(float theta, float &s, float &c)#

Computes both sine and cosine of an angle simultaneously.

More efficient than calling Sin() and Cos() separately for some use cases

Parameters:
  • theta – [in] Angle in radians

  • s – [out] Reference to store the sine value

  • c – [out] Reference to store the cosine value