Skip to content

Commit

Permalink
Merge pull request #804 from timoore/mat4-docs
Browse files Browse the repository at this point in the history
Improve documentation of plane-matrix multiplication
  • Loading branch information
robertosfield authored May 8, 2023
2 parents 22f9087 + bd2586d commit f02eba6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/vsg/maths/mat4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename T, typename R>
t_plane<T> operator*(const t_plane<T>& lhs, const t_mat4<R>& rhs)
{
Expand Down

0 comments on commit f02eba6

Please sign in to comment.