|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--jp.go.ipa.jgcl.JgclGeometry | +--jp.go.ipa.jgcl.JgclPoint | +--jp.go.ipa.jgcl.JgclPoint2D | +--jp.go.ipa.jgcl.JgclHomogeneousPoint2D
2次元:各座標値が定数で定義された同次座標点を表すクラス。
JgclCartesianPoint2D
, 直列化された形式クラス jp.go.ipa.jgcl.JgclPoint2D から継承したフィールド |
origin |
コンストラクタの概要 | |
JgclHomogeneousPoint2D(double[] c)
(c[0]/c[2], c[1]/c[2]) で 定義されるオブジェクトを構築する。 |
|
JgclHomogeneousPoint2D(double wx,
double wy,
double w)
(wx/w, wy/w) で定義されるオブジェクトを構築する。 |
メソッドの概要 | |
protected JgclPoint2D |
doTransformBy(boolean reverseTransform,
JgclCartesianTransformationOperator2D transformationOperator,
java.util.Hashtable transformedGeometries)
この点を、与えられた幾何的変換演算子で変換する。 |
protected void |
output(java.io.PrintWriter writer,
int indent)
出力ストリームに形状情報を出力する。 |
double |
w()
W 座標値を返す。 |
double |
wx()
WX 座標値を返す。 |
double |
wy()
WY 座標値を返す。 |
double |
x()
X 座標値 (WX/W) を返す。 |
double |
y()
Y 座標値 (WY/W) を返す。 |
クラス jp.go.ipa.jgcl.JgclPoint2D から継承したメソッド |
add, center, center, dimension, distance, distance2, divide, identical, is2D, isIn, isInsideOf, isOn, linearInterpolate, longestPoint, longestPoint, midPoint, multiply, of, of, project, reverseTransform, reverseTransformBy, subtract, subtract, toVector2D, transform, transform, transformBy, transformBy |
クラス jp.go.ipa.jgcl.JgclPoint から継承したメソッド |
isPoint |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public JgclHomogeneousPoint2D(double wx, double wy, double w)
wx
- WX 座標値wy
- WY 座標値w
- W 座標値public JgclHomogeneousPoint2D(double[] c)
c
- 座標値の配列メソッドの詳細 |
public double x()
JgclPoint2D
内の x
public double y()
JgclPoint2D
内の y
public double wx()
public double wy()
public double w()
protected JgclPoint2D doTransformBy(boolean reverseTransform, JgclCartesianTransformationOperator2D transformationOperator, java.util.Hashtable transformedGeometries)
transformedGeometries は、 変換前の幾何要素をキーとし、 変換後の幾何要素を値とするハッシュテーブルである。
this が transformedGeometries 内にキーとして存在しない場合には、 this を transformationOperator で変換したものを返す。 この際にメソッド内部では this をキー、 変換結果を値として transformedGeometries に追加する。
this が transformedGeometries 内に既にキーとして存在する場合には、 実際の変換は行なわず、そのキーに対応する値を返す。 この処理は再帰的に行なわれる。
transformedGeometries は null でも構わない。 transformedGeometries は null の場合には、 常に this を transformationOperator で変換したものを返す。
JgclPoint2D
内の doTransformBy
reverseTransform
- 逆変換するのであれば true、そうでなければ falsetransformationOperator
- 幾何的変換演算子transformedGeometries
- 既に同様の変換を施した幾何要素を含むハッシュテーブルprotected void output(java.io.PrintWriter writer, int indent)
JgclGeometry
内の output
writer
- PrintWriterindent
- インデントの深さJgclGeometry
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |