diff --git a/src/Math/Vector.h b/src/Math/Vector.h index 11fa9da49..f98ef6403 100644 --- a/src/Math/Vector.h +++ b/src/Math/Vector.h @@ -57,7 +57,7 @@ template class Vector { * @brief Dot product * * @f[ - * a \cdot b = \sum_{i=1}^n a_ib_i + * a \cdot b = \sum_{i=0}^{n-1} a_ib_i * @f] */ static T dot(const Vector& a, const Vector& b) { diff --git a/src/Math/Vector3.h b/src/Math/Vector3.h index 4324f0977..e8046c574 100644 --- a/src/Math/Vector3.h +++ b/src/Math/Vector3.h @@ -49,8 +49,8 @@ template class Vector3: public Vector { * @brief Cross product * * @f[ - * \begin{pmatrix} c_1 \\ c_2 \\ c_3 \end{pmatrix} = - * \begin{pmatrix}a_2b_3 - a_3b_2 \\ a_3b_1 - a_1b_3 \\ a_1b_2 - a_2b_1 \end{pmatrix} + * \begin{pmatrix} c_0 \\ c_1 \\ c_2 \end{pmatrix} = + * \begin{pmatrix}a_1b_2 - a_2b_1 \\ a_2b_0 - a_0b_2 \\ a_0b_1 - a_1b_0 \end{pmatrix} * @f] */ constexpr static Vector3 cross(const Vector3& a, const Vector3& b) {