public abstract class AbstractConstraint extends java.lang.Object implements Constraint
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
p1
拘束対象位置情報1のインデックス
|
protected int |
p2
拘束対象位置情報2のインデックス
|
protected Point3D |
r1
拘束対象物体1の拘束位置
|
protected Point3D |
r2
拘束対象物体2の拘束位置
|
protected Vector |
vector
拘束荷重ベクトル
|
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
AbstractConstraint(int p1,
int p2,
Point3D r1,
Point3D r2)
拘束条件を構築する
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static Matrix |
add(Matrix m1,
Matrix m2)
行列の和を計算する
|
static Matrix |
add(Matrix m1,
Matrix m2,
Matrix m3)
行列の和を計算する
|
static Matrix |
add(Matrix m1,
Matrix m2,
Matrix m3,
Matrix m4)
行列の和を計算する
|
static Vector |
add(Vector v1,
Vector v2)
ベクトルの和を計算する
|
static Vector |
add(Vector v1,
Vector v2,
Vector v3,
Vector v4)
ベクトルの和を計算する
|
static int[] |
compList(Vector v)
ベクトルの成分が小さい順番のリストを帰す
|
Vector |
getVector()
拘束荷重ベクトルを返す
|
static Matrix |
mul(double c,
Matrix m)
行列と係数の積を計算する
|
static Matrix |
mul(Matrix m1,
Matrix m2)
行列の積を計算する
|
static Matrix |
mul(Matrix m1,
Matrix m2,
Matrix m3)
行列の積を計算する
|
static Matrix |
mul(Matrix m1,
Matrix m2,
Matrix m3,
Matrix m4)
行列の積を計算する
|
static Vector |
mul(Matrix m1,
Matrix m2,
Tuple3D v)
行列とベクトルの積を計算する
|
static Vector |
mul(Matrix m1,
Matrix m2,
Vector v)
行列とベクトルの積を計算する
|
static Vector |
mul(Matrix m,
Tuple3D v)
行列とベクトルの積を計算する
|
static Vector |
mul(Matrix m,
Vector v)
行列とベクトルの積を計算する
|
int |
p1()
拘束対象物体1のインデックスを返す
|
int |
p2()
拘束対象物体2のインデックスを返す
|
void |
setCoords(Point3D r1,
Point3D r2)
拘束位置を設定する
|
void |
setPosition(int p1,
int p2)
拘束対象物体を設定する
|
void |
swap()
拘束対象物体1と2を入れ替える
|
static Matrix |
tilde(Vector v)
チルダマトリックスを返す
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, dofprotected int p1
protected int p2
protected Point3D r1
protected Point3D r2
protected Vector vector
public int p1()
p1 インタフェース内 Constraintpublic int p2()
p2 インタフェース内 Constraintpublic void setPosition(int p1,
int p2)
setPosition インタフェース内 Constraintp1 - 拘束対象位置情報1のインデックスp2 - 拘束対象位置情報2のインデックスpublic void setCoords(Point3D r1, Point3D r2)
setCoords インタフェース内 Constraintr1 - 拘束対象物体1の拘束位置r2 - 拘束対象物体2の拘束位置public void swap()
swap インタフェース内 Constraintpublic Vector getVector()
getVector インタフェース内 Constraintpublic static Matrix mul(Matrix m1, Matrix m2, Matrix m3)
m1 - 行列1m2 - 行列2m3 - 行列3public static Matrix mul(Matrix m1, Matrix m2, Matrix m3, Matrix m4)
m1 - 行列1m2 - 行列2m3 - 行列3m4 - 行列4public static Vector mul(Matrix m, Tuple3D v)
m - 行列v - ベクトルpublic static Vector mul(Matrix m, Vector v)
m - 行列v - ベクトルpublic static Vector mul(Matrix m1, Matrix m2, Tuple3D v)
m1 - 行列1m2 - 行列2v - ベクトルpublic static Vector mul(Matrix m1, Matrix m2, Vector v)
m1 - 行列1m2 - 行列2v - ベクトルpublic static Matrix add(Matrix m1, Matrix m2, Matrix m3)
m1 - 行列1m2 - 行列2m3 - 行列3public static Matrix add(Matrix m1, Matrix m2, Matrix m3, Matrix m4)
m1 - 行列1m2 - 行列2m3 - 行列3m4 - 行列4public static Vector add(Vector v1, Vector v2)
v1 - ベクトル1v2 - ベクトル2public static Vector add(Vector v1, Vector v2, Vector v3, Vector v4)
v1 - ベクトル1v2 - ベクトル2v3 - ベクトル3v4 - ベクトル4public static int[] compList(Vector v)
v - 元ベクトル