From 60631459d95d7e549ef45bec73f27b2b9a9bb144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 3 Oct 2024 17:13:08 +0200 Subject: [PATCH] Math: cross-link dot product and cross product docs. --- src/Magnum/Math/Vector.h | 5 ++++- src/Magnum/Math/Vector3.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Vector.h b/src/Magnum/Math/Vector.h index 9aa0bc200..b426b29f0 100644 --- a/src/Magnum/Math/Vector.h +++ b/src/Magnum/Math/Vector.h @@ -111,7 +111,10 @@ the same general direction, `1` when two *normalized* vectors are parallel, * *normalized* vectors are antiparallel. @f[ \boldsymbol a \cdot \boldsymbol b = \sum_{i=0}^{n-1} \boldsymbol a_i \boldsymbol b_i @f] -@see @ref Vector::dot() const, @ref Vector::operator-(), @ref Vector2::perpendicular() +@see @ref Vector::dot() const, @ref Vector::operator-(), + @ref Vector2::perpendicular(), + @ref cross(const Vector3&, const Vector3&), + @ref cross(const Vector2&, const Vector2&) */ template inline T dot(const Vector& a, const Vector& b) { T out{}; diff --git a/src/Magnum/Math/Vector3.h b/src/Magnum/Math/Vector3.h index 5d50c0832..f558a3c17 100644 --- a/src/Magnum/Math/Vector3.h +++ b/src/Magnum/Math/Vector3.h @@ -54,7 +54,8 @@ gives the direction of its normal, and is its area. Length of a cross product is also related to a distance of a point and a line, see @ref Distance::linePoint(const Vector3&, const Vector3&, const Vector3&) for more information. -@see @ref cross(const Vector2&, const Vector2&), @ref planeEquation() +@see @ref cross(const Vector2&, const Vector2&), @ref planeEquation(), + @ref dot(const Vector&, const Vector&) */ template inline Vector3 cross(const Vector3& a, const Vector3& b) { return {