Cairo::Pointクラス

点を表します。

rcairoの拡張です。

オブジェクト階層

クラスメソッド

Cairo::Point.new(x, y)
点(x, y)を生成します。

インタンスメソッド

distance(other)
selfotherとの距離を計算します。
to_a
to_ary
配列貸します。
x
点のX座標を返します。
y
点のY座標を返します。

参考

変更履歴