The origin of other (a frame of the same tree) in this frame's
coordinates, from both frames' transforms to the root (through their
first parents).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(in) | :: | self |
(other: a frame of the same tree) |
||
| class(ReferenceFrame), | intent(in) | :: | other |
(other: a frame of the same tree) |
function position_of(self, other) result(p) class(ReferenceFrame), intent(in) :: self, other !! (other: a frame of the same tree) real(wp) :: p(3) real(wp) :: m(4,4) m = matmul(rigid_inverse(self%world_matrix()), other%world_matrix()) p = m(1:3, 4) end function position_of