The sky's attitude in the root frame (quaternion [x, y, z, w]): e.g. to turn an equatorial catalog into an ecliptic root frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SkySphere), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | q(4) |
quaternion [x, y, z, w] (any length > 0) |
subroutine set_attitude(self, q) class(SkySphere), intent(inout) :: self real(wp), intent(in) :: q(4) !! quaternion [x, y, z, w] (any length > 0) if (norm2(q) <= 0.0_wp) return self%attitude_ = q / norm2(q) call apply_attitude(self, self%texture_node) call apply_attitude(self, self%star_node) call apply_attitude(self, self%line_node) call apply_name_attitude(self) end subroutine set_attitude