From bd2586d5448432994247a47ea104099482b2f37d Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Mon, 8 May 2023 11:22:04 +0200 Subject: [PATCH] Improve documentation of plane-matrix multiplication --- include/vsg/maths/mat4.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/vsg/maths/mat4.h b/include/vsg/maths/mat4.h index 0644b0067..200395acc 100644 --- a/include/vsg/maths/mat4.h +++ b/include/vsg/maths/mat4.h @@ -198,8 +198,9 @@ namespace vsg lhs[0] * rhs[3][0] + lhs[1] * rhs[3][1] + lhs[2] * rhs[3][2] + lhs[3] * rhs[3][3]); } - /* Left multiplication of a plane and a matrix. This can be used directly to transform a plane - from a coordinate system's local coordinates to world coordinates. */ + /* Left multiplication of a plane and a matrix. If the matrix is the inverse of the + local-to-world transform i.e., the world-to-local transform, then this can be used directly + to transform a plane from a coordinate system's local coordinates to world coordinates. */ template t_plane operator*(const t_plane& lhs, const t_mat4& rhs) {