Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtk_move_shape(3) [debian man page]

DTK_MOVE_SHAPE(3)						Draw Toolkit manual						 DTK_MOVE_SHAPE(3)

NAME
dtk_move_shape, dtk_relmove_shape, dtk_rotate_shape, dtk_relrotate_shape - shape displacement SYNOPSIS
#include <drawtk.h> void dtk_move_shape(dtk_hshape shp, float x, float y); void dtk_relmove_shape(dtk_hshape shp, float dx, float dy); void dtk_rotate_shape(dtk_hshape shp, float deg); void dtk_relrotate_shape(dtk_hshape shp, float ddeg); DESCRIPTION
These functions control the position and the rotation with which the shape shp will be next drawn. dtk_move_shape() set the translation the shape for the next draws. The position defined by x and y corresponds to the position of the ori- gin of the shape (corresponding to the point (0,0) when the shape has been created). dtk_rotate_shape() set the rotation (counter-clockwise) of the shape around its origin of the shape. This rotation is performed relatively to the initial posture of the shape (at creation time). The argument deg specify the angle of rotation expressed in degrees. dtk_relmove_shape() and dtk_relrotate_shape() do the same excepting that their arguments dx, dy and ddeg updates the current parameters of the translation and rotation. RETURN VALUE
None of these functions returns value. SEE ALSO
dtk_draw_shape(3) EPFL
2010 DTK_MOVE_SHAPE(3)

Check Out this Related Man Page

DTK_CREATE_TRIANGLE(3)						Draw Toolkit manual					    DTK_CREATE_TRIANGLE(3)

NAME
dtk_create_triangle - Create and modify triangle shape SYNOPSIS
#include <drawtk.h> dtk_hshape dtk_create_triangle(dtk_hshape shp, float x1, float y1, float x2, float y2, float x3, float y3, int filled, const float *color); DESCRIPTION
dtk_create_triangle() creates a triangle between the vertices (x1,y1), (x2,y2) and (x3,y3). shp, filled and color have the same usage and meaning as for other shape creation function: * shp can be used to modify a previously created shape. If it is non-null, the handle will be used to modify the shape referenced by shp: no new shape is created and the returned value is ensured to be shp in case of success, NULL otherwise. If shp is NULL, the function will attempt to create a new shape. * filled is set to 0 if the described shape should be a continuous line or a non-null value if the shape is supposed to be filled polygon. * color should point to a 4 float array containing a normalized RGBA value (i.e. each component is between 0.0 and 1.0). RETURN VALUE
In case of success these functions return the handle to the newly created or modified shape. If the shp argument is non-null, the handle returned is the same value. In case of error, NULL is returned. SEE ALSO
dtk_destroy_shape(3) EPFL
2011 DTK_CREATE_TRIANGLE(3)
Man Page