Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    short _FAR _getarcinfo( struct xycoord _FAR *start_pt,
                            struct xycoord _FAR *end_pt,
                            struct xycoord _FAR *inside_pt );

Description:
    The _getarcinfo function returns information about the arc most recently
    drawn by the  _arc or  _pie functions.  The arguments start_pt and
    end_pt are set to contain the endpoints of the arc.  The argument
    inside_pt will contain the coordinates of a point within the pie.  The
    points are all specified in the view coordinate system.

    The endpoints of the arc can be used to connect other lines to the arc.
    The interior point can be used to fill the pie.

Returns:
    The _getarcinfo function returns a non-zero value when successful.  If
    the previous arc or pie was not successfully drawn, zero is returned.

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        struct xycoord start_pt, end_pt, inside_pt;

        _setvideomode( _VRES16COLOR );
        _arc( 120, 90, 520, 390, 520, 90, 120, 390 );
        _getarcinfo( &start_pt, &end_pt, &inside_pt );
        _moveto( start_pt.xcoord, start_pt.ycoord );
        _lineto( end_pt.xcoord, end_pt.ycoord );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

    produces the following:



Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _arc, _pie

See Also:

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson