<?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="ja" xml:id="xfarcs">

    <refnamediv>

        <refname>xfarcs</refname>

        <refpurpose>楕円の集合の一部を塗りつぶす</refpurpose>

    </refnamediv>

    <refsynopsisdiv>

        <title>呼び出し手順</title>

        <synopsis>xfarcs(arcs,[style])</synopsis>

    </refsynopsisdiv>

    <refsection>

        <title>引数</title>

        <variablelist>

            <varlistentry>

                <term>arcs</term>

                <listitem>

                    <para>楕円を記述する大きさ (6,n) の行列.</para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>style</term>

                <listitem>

                    <para>使用する色を指定する大きさnの行ベクトル.</para>

                </listitem>

            </varlistentry>

        </variablelist>

    </refsection>

    <refsection>

        <title>説明</title>

        <para>

            <literal>xarcs</literal> は<literal>arcs</literal>で記述された楕円の集合の

            一部を塗りつぶします:

            <literal>arcs=[x y w h a1 a2;x y w h a1 a2;...]'</literal> ただし,

            各楕円は6個のパラメータ <literal>(x,y,w,h,a1,a2)</literal>

            (<literal>xfarc</literal>参照)により定義されます.

        </para>

        <para>

            <literal>x, y, w, h</literal> パラメータはユーザ座標で指定されます.

        </para>

        <para>

            <literal>style(i)</literal>は<literal>i</literal>番の楕円を

            塗りつぶす色番号を指定します.

        </para>

        <para>a2が360*64に等しい場合, 完全な円が描画されます.</para>

    </refsection>

    <refsection>

        <title>例</title>

        <programlisting role="example"><![CDATA[

plot2d(0,0,-1,"031"," ",[-1,-1,1,1])

arcs=[-1.0 0.0 0.5; // 左上 x

       1.0 0.0 0.5; // 左上 y

       0.5 1.0 0.5; // 幅

       0.5 0.5 1.0; // 高さ

       0.0 0.0 0.0; // 角度 1

       180*64 360*64 90*64]; // 角度 2

xfarcs(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];

            xfarcs(arcs,[1,2,3])

        </scilab:image>

    </refsection>

    <refsection role="see also">

        <title>参照</title>

        <simplelist type="inline">

            <member>

                <link linkend="xarc">xarc</link>

            </member>

            <member>

                <link linkend="xfarc">xfarc</link>

            </member>

            <member>

                <link linkend="xfarc">xfarc</link>

            </member>

        </simplelist>

    </refsection>

</refentry>

