Template Function Acts::VectorHelpers::theta

Function Documentation

template<typename Derived>
double Acts::VectorHelpers::theta(const Eigen::MatrixBase<Derived> &v) noexcept

Calculate the theta angle (longitudinal w.r.t.

z axis) of a vector

Note

Will static assert that the number of rows of v is at least 3, or in case of dynamic size, will abort execution if that is not the case.

Return

The theta value

Template Parameters
  • Derived: Eigen derived concrete type

Parameters
  • v: Any vector like Eigen type, static or dynamic