corners               package:spatstat               R Documentation

_C_o_r_n_e_r_s _o_f _a _r_e_c_t_a_n_g_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     Returns the four corners of a rectangle

_U_s_a_g_e:

      corners(window)

_A_r_g_u_m_e_n_t_s:

  window: A window.  An object of class `owin', or data in any format
          acceptable to `as.owin()'. 

_D_e_t_a_i_l_s:

     This trivial function is occasionally convenient. If `window' is
     of type `"rectangle"' this returns the four corners of the window
     itself;  otherwise, it returns the corners of the bounding
     rectangle of the window.

_V_a_l_u_e:

     A list with two components `x' and `y', which are numeric vectors
     of length 4 giving the coordinates of the four corner points of
     the (bounding rectangle of the) window.

_A_u_t_h_o_r(_s):

     Adrian Baddeley adrian@maths.uwa.edu.au <URL:
     http://www.maths.uwa.edu.au/~adrian/> and Rolf Turner
     rolf@math.unb.ca <URL: http://www.math.unb.ca/~rolf>

_S_e_e _A_l_s_o:

     `quad.object', `quadscheme'

_E_x_a_m_p_l_e_s:


       library(spatstat)

       w <- unit.square()
       corners(w)
            # returns list(x=c(0,1,0,1),y=c(0,0,1,1))

