<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) ENPC - Jean-Philippe Chancelier
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"  xml:lang="en" xml:id="xarcs">
    <refnamediv>
        <refname>xarcs</refname>
        <refpurpose>draw parts of a set of ellipses</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>xarcs(arcs,[style])</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>arcs</term>
                <listitem>
                    <para>matrix of size (6,n) describing the ellipses.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>style</term>
                <listitem>
                    <para>row vector of size n giving the style to use.</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            <literal>xarcs</literal> draws parts of a set of ellipses described by <literal>arcs</literal>:
            <literal>arcs=[x y w h a1 a2;x y w h a1 a2;...]'</literal> where each ellipse is defined
            by the 6 parameters <literal>(x,y,w,h,a1,a2)</literal> (see <literal>xarc</literal>).
        </para>
        <para>
            <literal>x, y, w, h</literal> parameters are specified in user coordinates.
        </para>
        <para>
            <literal>style(i)</literal> gives the color used to draw ellipse number <literal>i</literal>.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
plot2d(0,0,-1,"031"," ",[-1,-1,1,1])
arcs=[-1.0 0.0 0.5; // upper left x
       1.0 0.0 0.5; // upper left y
       0.5 1.0 0.5; // width
       0.5 0.5 1.0; // height
       0.0 0.0 0.0; // angle 1
       180*64 360*64 90*64]; // angle 2
xarcs(arcs,[1,2,3])
 ]]></programlisting>
        <scilab:image>
            plot2d(0,0,-1,"031"," ",[-1,-1,1,1])
            arcs=[-1.0 0.0 0.5;
            1.0 0.0 0.5;
            0.5 1.0 0.5;
            0.5 0.5 1.0;
            0.0 0.0 0.0;
            180*64 360*64 90*64];
            xarcs(arcs,[1,2,3])
        </scilab:image>

    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="xarc">xarc</link>
            </member>
            <member>
                <link linkend="xfarc">xfarc</link>
            </member>
            <member>
                <link linkend="xfarcs">xfarcs</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
