C# Class SoundLibrary.Mathematics.ThreeDimension.Quaternion

ハミルトンの四減数。
显示文件 Open project: ufcpp/UfcppSample Class Usage Examples

Public Properties

Property Type Description
a double
u Vector

Public Methods

Method Description
Conjunction ( ) : Quaternion

共役四元数を求める。

Inverse ( ) : Quaternion

逆数を求める。

Quaternion ( double a, Vector u ) : System

実部と虚部ベクトルを指定して初期化。 a + ii・uu、ii=(i,j,k)、uu=(p,q,r)。

Quaternion ( double a, double p, double q, double r ) : System

実部と虚部の要素を指定して初期化。 a + i p + j q + k r。

Rotate ( Quaternion p, Quaternion x ) : Quaternion

四元数を使って3次元空間上の回転。 p × x × ~q を計算する(~p は p の共役)。

Rotate ( Quaternion p, Vector x ) : Vector

四元数を使って3次元空間上の回転。 p × (0, x) × ~p を計算する(~p は p の共役)。

Rotator ( double theta, Vector axis ) : Quaternion

ベクトル(axis)を軸として、θ(theta)回転するための四元数を計算する。

ToString ( ) : string
operator ( ) : Quaternion

x + y。

Method Details

Conjunction() public method

共役四元数を求める。
public Conjunction ( ) : Quaternion
return Quaternion

Inverse() public method

逆数を求める。
public Inverse ( ) : Quaternion
return Quaternion

Quaternion() public method

実部と虚部ベクトルを指定して初期化。 a + ii・uu、ii=(i,j,k)、uu=(p,q,r)。
public Quaternion ( double a, Vector u ) : System
a double 実部
u Vector 虚部ベクトル
return System

Quaternion() public method

実部と虚部の要素を指定して初期化。 a + i p + j q + k r。
public Quaternion ( double a, double p, double q, double r ) : System
a double 実部
p double 虚部の i 要素
q double 虚部の j 要素
r double 虚部の k 要素
return System

Rotate() public static method

四元数を使って3次元空間上の回転。 p × x × ~q を計算する(~p は p の共役)。
public static Rotate ( Quaternion p, Quaternion x ) : Quaternion
p Quaternion p
x Quaternion x
return Quaternion

Rotate() public static method

四元数を使って3次元空間上の回転。 p × (0, x) × ~p を計算する(~p は p の共役)。
public static Rotate ( Quaternion p, Vector x ) : Vector
p Quaternion 回転軸/角を表す四元数
x Vector 回転させたい点のベクトル
return Vector

Rotator() public static method

ベクトル(axis)を軸として、θ(theta)回転するための四元数を計算する。
public static Rotator ( double theta, Vector axis ) : Quaternion
theta double 回転角θ
axis Vector 回転軸ベクトル
return Quaternion

ToString() public method

public ToString ( ) : string
return string

operator() public static method

x + y。
public static operator ( ) : Quaternion
return Quaternion

Property Details

a public_oe property

実部。
public double a
return double

u public_oe property

虚部。
public Vector,SoundLibrary.Mathematics.ThreeDimension u
return Vector