xyPoint-class           package:Rgraphviz           R Documentation

_C_l_a_s_s "_x_y_P_o_i_n_t": _A _c_l_a_s_s _t_o _r_e_p_r_e_s_e_n_t _a _X/_Y _c_o_o_r_d_i_n_a_t_e.

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

     This class is used to describe a coordinate in 2-dimensional (X/Y)
     space

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("xyPoint", ...)'.

_S_l_o_t_s:


     '_x': Object of class '"numeric"' The x coordinate

     '_y': Object of class '"numeric"' The y coordinate

_M_e_t_h_o_d_s:


     _g_e_t_X Returns the value stored in the 'x' slot

     _g_e_t_Y Returns the value stored in the 'y' slot

     _g_e_t_P_o_i_n_t_s Returns a vector of two numerical values representing
          the 'x' and 'y' positions

     _s_h_o_w Display information about the object in a concise fashion

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

     Jeff Gentry

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

        z <- new("xyPoint", x=150, y=30)
        z
        getPoints(z)

        getX(z)
        getY(z)

