PxTanHalf

Defined in include/foundation/PxMathUtils.h

inline PxReal PxTanHalf(PxReal sin, PxReal cos)

Compute tan(theta/2) given sin(theta) and cos(theta) as inputs.

Parameters
  • sin[in] has value sin(theta)

  • cos[in] has value cos(theta)

Returns

Returns tan(theta/2)