dche.component
クラス PolygonCoordinates

java.lang.Object
  上位を拡張 dche.component.PolygonCoordinates

public class PolygonCoordinates
extends java.lang.Object

多角形内部座標クラス


フィールドの概要
protected  double[] s
          座標を格納した配列
 
コンストラクタの概要
protected PolygonCoordinates(double[] s)
          多角形内部座標を構築する
 
メソッドの概要
 double get(int index)
          座標値を返す
static PolygonCoordinates quadangle(int x, int y, int[] gx, int[] gy)
          四角形の座標を返す
static PolygonCoordinates triangle(int x, int y, int[] gx, int[] gy)
          三角形の座標を返す
 double valueAt(double[] value)
          多角形内部の値を返す
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

s

protected double[] s
座標を格納した配列

コンストラクタの詳細

PolygonCoordinates

protected PolygonCoordinates(double[] s)
多角形内部座標を構築する

パラメータ:
s - 座標を格納した配列
メソッドの詳細

get

public double get(int index)
座標値を返す

パラメータ:
index - 座標のインデックス
戻り値:
指定された座標

valueAt

public double valueAt(double[] value)
多角形内部の値を返す

パラメータ:
value - 頂点での値を格納した配列
戻り値:
内部の値

triangle

public static PolygonCoordinates triangle(int x,
                                          int y,
                                          int[] gx,
                                          int[] gy)
三角形の座標を返す

パラメータ:
x - 座標を求める点の x 座標
y - 座標を求める点の y 座標
gx - 頂点の x 座標を格納した配列
gy - 頂点の y 座標を格納した配列

quadangle

public static PolygonCoordinates quadangle(int x,
                                           int y,
                                           int[] gx,
                                           int[] gy)
四角形の座標を返す

パラメータ:
x - 座標を求める点の x 座標
y - 座標を求める点の y 座標
gx - 頂点の x 座標を格納した配列
gy - 頂点の y 座標を格納した配列