kipp_window_center Subroutine

public subroutine kipp_window_center(cx, cy)

Give centre of current view, in world coords.

Default position of a scripted key.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(out) :: cx

x of view centre.

real(kind=real64), intent(out) :: cy

y of view centre.


Source Code

   subroutine kipp_window_center(cx, cy)
      !! Give centre of current view, in world coords.
      !!
      !! Default position of a scripted key.
      ! Arguments
      real(real64), intent(out) :: cx
         !! x of view centre.
      real(real64), intent(out) :: cy
         !! y of view centre.
      cx = 0.5d0*(xtrans(st%xmin) + xtrans(st%xmax))
      cy = 0.5d0*(ytrans2(st%ymin) + ytrans2(st%ymax))
   end subroutine kipp_window_center