/********************************************************************************* * @brief This function add 2 units to the circle radius * @param[in] x Position x of the center of the wheel in the Cartesian system * @param[in] y Position y of the center of the wheel in the Cartesian system * @param[out] d Diameter of the circle * @param[in/out] r Radius of the circle * @return This function returns 1 when the operation succeeded or returns -1 when the operation failed *********************************************************************************/ int resize_circle(int x,int y, int *d, int *r) { if((*r)<0) { return -1 } x=x; y=y; *r=(*r)+2; *d=2*(*r); return 1; }
/********************************************************************************* * @brief This function add 2 units to the circle radius * @param[in] x Position x of the center of the wheel in the Cartesian system * @param[in] y Position y of the center of the wheel in the Cartesian system * @param[out] d Diameter of the circle * @param[in/out] r Radius of the circle * @return This function returns 1 when the operation succeeded or returns -1 when the operation failed *********************************************************************************/ int resize_circle(int x,int y, int *d, int *r) { if((*r)<0) { return -1 } x=x; y=y; *r=(*r)+2; *d=2*(*r); return 1; }