1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>Cairo::Pointクラス</title>
<link href="../doc.css" type="text/css" rel="stylesheet" />
</head>
<div class="footer">
<ul>
<li><a href="./">索引</a></li>
</ul>
</div>
</body>
<h1><a name="label-0" id="label-0">Cairo::Pointクラス</a></h1><!-- RDLabel: "Cairo::Pointクラス" -->
<p>点を表します。</p>
<p>rcairoの拡張です。</p>
<h2><a name="label-1" id="label-1">オブジェクト階層</a></h2><!-- RDLabel: "オブジェクト階層" -->
<ul>
<li>Object
<ul>
<li>Cairo::Point</li>
</ul></li>
</ul>
<h2><a name="label-2" id="label-2">クラスメソッド</a></h2><!-- RDLabel: "クラスメソッド" -->
<dl>
<dt><a name="label-3" id="label-3"><code>Cairo::Point.new(<var>x</var>, <var>y</var>)</code></a></dt><!-- RDLabel: "Cairo::Point.new" -->
<dd>
点(<var>x</var>, <var>y</var>)を生成します。
<ul>
<li>x: 点のX座標</li>
<li>y: 点のY座標</li>
<li>戻り値: 点。</li>
</ul></dd>
</dl>
<h2><a name="label-4" id="label-4">インタンスメソッド</a></h2><!-- RDLabel: "インタンスメソッド" -->
<dl>
<dt><a name="label-5" id="label-5"><code>distance(<var>other</var>)</code></a></dt><!-- RDLabel: "distance" -->
<dd>
<var>self</var>と<var>other</var>との距離を計算します。
<ul>
<li>other: <a href="cairo-point.html">Cairo::Point</a>オブジェクト</li>
<li>戻り値: 距離。</li>
</ul></dd>
<dt><a name="label-6" id="label-6"><code>to_a</code></a></dt><!-- RDLabel: "to_a" -->
<dt><a name="label-7" id="label-7"><code>to_ary</code></a></dt><!-- RDLabel: "to_ary" -->
<dd>
配列貸します。
<ul>
<li>戻り値: <code>[x, y]</code>
<ul>
<li>x: 点のX座標</li>
<li>y: 点のY座標</li>
</ul></li>
</ul></dd>
<dt><a name="label-8" id="label-8"><code>x</code></a></dt><!-- RDLabel: "x" -->
<dd>
点のX座標を返します。
<ul>
<li>戻り値: X座標。</li>
</ul></dd>
<dt><a name="label-9" id="label-9"><code>y</code></a></dt><!-- RDLabel: "y" -->
<dd>
点のY座標を返します。
<ul>
<li>戻り値: Y座標。</li>
</ul></dd>
</dl>
<h2><a name="label-10" id="label-10">参考</a></h2><!-- RDLabel: "参考" -->
<ul>
<li><a href="index.html#label-0">索引</a></li>
</ul>
<h2><a name="label-11" id="label-11">変更履歴</a></h2><!-- RDLabel: "変更履歴" -->
<ul>
<li>2007-05-22: kou: スタート。</li>
</ul>
<div class="footer">
<ul>
<li><a href="./">索引</a></li>
</ul>
</div>
</body>
</html>
|