The 4 corners (OpenFrames' createRectangularCone).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(RectangularCone), | intent(inout) | :: | self |
subroutine rect_vertices(self) type(RectangularCone), intent(inout) :: self real(wp) :: xl, yl, cone, clock xl = tan(self%x) yl = tan(self%y) cone = atan(sqrt(xl**2 + yl**2)) clock = atan2(yl, xl) self%clock = [clock, pi - clock, pi + clock, -clock] self%cone = [cone, cone, cone, cone] end subroutine rect_vertices