Skip to content

Commit

Permalink
Improve documentation of plane-matrix multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
timoore committed May 8, 2023
1 parent 22f9087 commit bd2586d
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 bd2586d

Please sign in to comment.