rotate(r) * m, for a rotation r (3x3).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | r(3,3) |
rotation (3x3); transform (4x4) |
||
| real(kind=wp), | intent(in) | :: | m(4,4) |
rotation (3x3); transform (4x4) |
pure function rotated(r, m) result(rm) real(wp), intent(in) :: r(3,3), m(4,4) !! rotation (3x3); transform (4x4) real(wp) :: rm(4,4) rm = m rm(1:3, :) = matmul(r, m(1:3, :)) end function rotated