BezierCurve-class         package:Rgraphviz         R Documentation

_C_l_a_s_s "_B_e_z_i_e_r_C_u_r_v_e": _A _c_l_a_s_s _t_o _d_e_s_c_r_i_b_e _a _B_e_z_i_e_r _c_u_r_v_e

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

     This class is used to represent a Bezier curve in R, which can
     then be used for other applications, plotted, etc

_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("BezierCurve",
     ...)'.

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

     '_c_P_o_i_n_t_s': Object of class '"list"': A list of 'xyPoint' objects,
          representing control points for the curve

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

     '_c_P_o_i_n_t_s': Returns the 'cPoints' slot

     '_p_o_i_n_t_L_i_s_t': Returns a list of all points having been processed
          with teh 'getPoints' method of 'xyPoint'

     '_b_e_z_i_e_r_P_o_i_n_t_s': Returns a matrix giving x & y points (by column)
          for the complete Bezier curve

     '_l_i_n_e_s': Draws the Bezier curve

     '_s_h_o_w': Provides a concise display of information

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

     Jeff Gentry

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

     'xyPoint'

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

     V <- letters[1:10]
     M <- 1:4
     g1 <- randomGraph(V, M, .2)
     z <- agopen(g1,"foo")
     x <- AgEdge(z)  ## list of AgEdge objects
     x[[1]]  ## AgEdge
     a <- splines(x[[1]])[[1]]
     a  ## BezierCurve

     cPoints(a)
     pointList(a)
     bezierPoints(a)

