ゲームグラフィックス特論
読み取り中…
検索中…
一致する文字列を見つけられません
gg::GgQuaternion クラス

#include <gg.h>

gg::GgQuaternion の継承関係図
gg::GgQuaternion 連携図

公開メンバ関数

 GgQuaternion ()=default
constexpr GgQuaternion (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
constexpr GgQuaternion (GLfloat c)
 GgQuaternion (const GLfloat *a)
 GgQuaternion (const GgVector &v)
 GgQuaternion (const GgQuaternion &q)=default
 GgQuaternion (GgQuaternion &&q)=default
 ~GgQuaternion ()=default
GgQuaternion & operator= (const GgQuaternion &q)=default
GgQuaternion & operator= (GgQuaternion &&q)=default
GLfloat norm () const
GgQuaternion & loadAdd (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
GgQuaternion & loadAdd (const GLfloat *a)
GgQuaternion & loadAdd (const GgVector &v)
GgQuaternion & loadAdd (const GgQuaternion &q)
GgQuaternion & loadSubtract (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
GgQuaternion & loadSubtract (const GLfloat *a)
GgQuaternion & loadSubtract (const GgVector &v)
GgQuaternion & loadSubtract (const GgQuaternion &q)
GgQuaternion & loadMultiply (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
GgQuaternion & loadMultiply (const GLfloat *a)
GgQuaternion & loadMultiply (const GgVector &v)
GgQuaternion & loadMultiply (const GgQuaternion &q)
GgQuaternion & loadDivide (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
GgQuaternion & loadDivide (const GLfloat *a)
GgQuaternion & loadDivide (const GgVector &v)
GgQuaternion & loadDivide (const GgQuaternion &q)
GgQuaternion add (GLfloat x, GLfloat y, GLfloat z, GLfloat w) const
GgQuaternion add (const GLfloat *a) const
GgQuaternion add (const GgVector &v) const
GgQuaternion add (const GgQuaternion &q) const
GgQuaternion subtract (GLfloat x, GLfloat y, GLfloat z, GLfloat w) const
GgQuaternion subtract (const GLfloat *a) const
GgQuaternion subtract (const GgVector &v) const
GgQuaternion subtract (const GgQuaternion &q) const
GgQuaternion multiply (GLfloat x, GLfloat y, GLfloat z, GLfloat w) const
GgQuaternion multiply (const GLfloat *a) const
GgQuaternion multiply (const GgVector &v) const
GgQuaternion multiply (const GgQuaternion &q) const
GgQuaternion divide (GLfloat x, GLfloat y, GLfloat z, GLfloat w) const
GgQuaternion divide (const GLfloat *a) const
GgQuaternion divide (const GgVector &v) const
GgQuaternion divide (const GgQuaternion &q) const
GgQuaternion & operator= (const GLfloat *a)
GgQuaternion & operator= (const GgVector &v)
GgQuaternion & operator+= (const GLfloat *a)
GgQuaternion & operator+= (const GgVector &v)
GgQuaternion & operator+= (const GgQuaternion &q)
GgQuaternion & operator-= (const GLfloat *a)
GgQuaternion & operator-= (const GgVector &v)
GgQuaternion & operator-= (const GgQuaternion &q)
GgQuaternion & operator*= (const GLfloat *a)
GgQuaternion & operator*= (const GgVector &v)
GgQuaternion & operator*= (const GgQuaternion &q)
GgQuaternion & operator/= (const GLfloat *a)
GgQuaternion & operator/= (const GgVector &v)
GgQuaternion & operator/= (const GgQuaternion &q)
GgQuaternion operator+ (const GLfloat *a) const
GgQuaternion operator+ (const GgVector &v) const
GgQuaternion operator+ (const GgQuaternion &q) const
GgQuaternion operator- (const GLfloat *a) const
GgQuaternion operator- (const GgVector &v) const
GgQuaternion operator- (const GgQuaternion &q) const
GgQuaternion operator* (const GLfloat *a) const
GgQuaternion operator* (const GgVector &v) const
GgQuaternion operator* (const GgQuaternion &q) const
GgQuaternion operator/ (const GLfloat *a) const
GgQuaternion operator/ (const GgVector &v) const
GgQuaternion operator/ (const GgQuaternion &q) const
GgQuaternion & loadMatrix (const GLfloat *a)
GgQuaternion & loadMatrix (const GgMatrix &m)
GgQuaternion & loadIdentity ()
GgQuaternion & loadRotate (GLfloat x, GLfloat y, GLfloat z, GLfloat a)
GgQuaternion & loadRotate (const GLfloat *v, GLfloat a)
GgQuaternion & loadRotate (const GLfloat *v)
GgQuaternion & loadRotateX (GLfloat a)
GgQuaternion & loadRotateY (GLfloat a)
GgQuaternion & loadRotateZ (GLfloat a)
GgQuaternion rotate (GLfloat x, GLfloat y, GLfloat z, GLfloat a) const
GgQuaternion rotate (const GLfloat *v, GLfloat a) const
GgQuaternion rotate (const GLfloat *v) const
GgQuaternion rotateX (GLfloat a) const
GgQuaternion rotateY (GLfloat a) const
GgQuaternion rotateZ (GLfloat a) const
GgQuaternion & loadEuler (GLfloat heading, GLfloat pitch, GLfloat roll)
GgQuaternion & loadEuler (const GLfloat *e)
GgQuaternion euler (GLfloat heading, GLfloat pitch, GLfloat roll) const
GgQuaternion euler (const GLfloat *e) const
GgQuaternion euler (const GgVector &e) const
GgQuaternion & loadSlerp (const GLfloat *a, const GLfloat *b, GLfloat t)
GgQuaternion & loadSlerp (const GgQuaternion &q, const GgQuaternion &r, GLfloat t)
GgQuaternion & loadSlerp (const GgQuaternion &q, const GLfloat *a, GLfloat t)
GgQuaternion & loadSlerp (const GLfloat *a, const GgQuaternion &q, GLfloat t)
GgQuaternion & loadNormalize (const GLfloat *a)
GgQuaternion & loadNormalize (const GgQuaternion &q)
GgQuaternion & loadConjugate (const GLfloat *a)
GgQuaternion & loadConjugate (const GgQuaternion &q)
GgQuaternion & loadInvert (const GLfloat *a)
GgQuaternion & loadInvert (const GgQuaternion &q)
GgQuaternion slerp (GLfloat *a, GLfloat t) const
GgQuaternion slerp (const GgQuaternion &q, GLfloat t) const
GgQuaternion normalize () const
GgQuaternion conjugate () const
GgQuaternion invert () const
void get (GLfloat *a) const
void getMatrix (GLfloat *a) const
void getMatrix (GgMatrix &m) const
GgMatrix getMatrix () const
void getConjugateMatrix (GLfloat *a) const
void getConjugateMatrix (GgMatrix &m) const
GgMatrix getConjugateMatrix () const
基底クラス gg::GgVector に属する継承公開メンバ関数
 GgVector ()=default
constexpr GgVector (GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
constexpr GgVector (const GLfloat *a)
constexpr GgVector (GLfloat c)
 GgVector (const GgVector &v)=default
 GgVector (GgVector &&v)=default
 ~GgVector ()=default
GgVector & operator= (const GgVector &v)=default
GgVector & operator= (GgVector &&v)=default
constexpr GgVector operator+ (const GgVector &v) const noexcept
constexpr GgVector operator+ (GLfloat c) const noexcept
constexpr GgVector & operator+= (const GgVector &v) noexcept
constexpr GgVector & operator+= (GLfloat c) noexcept
constexpr GgVector operator- (const GgVector &v) const noexcept
constexpr GgVector operator- (GLfloat c) const noexcept
constexpr GgVector & operator-= (const GgVector &v) noexcept
constexpr GgVector & operator-= (GLfloat c) noexcept
constexpr GgVector operator* (const GgVector &v) const noexcept
constexpr GgVector operator* (GLfloat c) const noexcept
constexpr GgVector & operator*= (const GgVector &v) noexcept
constexpr GgVector & operator*= (GLfloat c) noexcept
constexpr GgVector operator/ (const GgVector &v) const noexcept
constexpr GgVector operator/ (GLfloat c) const noexcept
constexpr GgVector & operator/= (const GgVector &v) noexcept
constexpr GgVector & operator/= (GLfloat c) noexcept
GLfloat dot3 (const GgVector &v) const
GLfloat length3 () const
GLfloat distance3 (const GgVector &v) const
GgVector normalize3 () const
GLfloat dot4 (const GgVector &v) const
GLfloat length4 () const
GLfloat distance4 (const GgVector &v) const
GgVector normalize4 () const

詳解

四元数.

gg.h の 3483 行目に定義があります。

構築子と解体子

◆ GgQuaternion() [1/7]

gg::GgQuaternion::GgQuaternion ( )
default

コンストラクタ.

◆ GgQuaternion() [2/7]

gg::GgQuaternion::GgQuaternion ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w )
inlineconstexpr

コンストラクタ.

引数
x四元数の x 要素.
y四元数の y 要素.
z四元数の z 要素.
w四元数の w 要素.

gg.h の 3512 行目に定義があります。

呼び出し関係図:

◆ GgQuaternion() [3/7]

gg::GgQuaternion::GgQuaternion ( GLfloat c)
inlineconstexpr

コンストラクタ.

引数
cGLfloat 型の値.

gg.h の 3522 行目に定義があります。

呼び出し関係図:

◆ GgQuaternion() [4/7]

gg::GgQuaternion::GgQuaternion ( const GLfloat * a)
inline

コンストラクタ.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.

gg.h の 3532 行目に定義があります。

呼び出し関係図:

◆ GgQuaternion() [5/7]

gg::GgQuaternion::GgQuaternion ( const GgVector & v)
inline

コンストラクタ.

引数
v四元数を格納した GgVector 型の変数.

gg.h の 3542 行目に定義があります。

呼び出し関係図:

◆ GgQuaternion() [6/7]

gg::GgQuaternion::GgQuaternion ( const GgQuaternion & q)
default

コピーコンストラクタ.

引数
qコピー元の四元数.
呼び出し関係図:

◆ GgQuaternion() [7/7]

gg::GgQuaternion::GgQuaternion ( GgQuaternion && q)
default

ムーブコンストラクタ.

引数
qムーブ元の四元数.
呼び出し関係図:

◆ ~GgQuaternion()

gg::GgQuaternion::~GgQuaternion ( )
default

デストラクタ.

関数詳解

◆ add() [1/4]

GgQuaternion gg::GgQuaternion::add ( const GgQuaternion & q) const
inline

四元数に別の四元数を加算した結果を返す.

引数
qGgQuaternion 型の四元数.
戻り値
q を加えた四元数.

gg.h の 3835 行目に定義があります。

呼び出し関係図:

◆ add() [2/4]

GgQuaternion gg::GgQuaternion::add ( const GgVector & v) const
inline

四元数に別の四元数を加算した結果を返す.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v を加えた四元数.

gg.h の 3824 行目に定義があります。

呼び出し関係図:

◆ add() [3/4]

GgQuaternion gg::GgQuaternion::add ( const GLfloat * a) const
inline

四元数に別の四元数を加算した結果を返す.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a を加えた四元数.

gg.h の 3813 行目に定義があります。

呼び出し関係図:

◆ add() [4/4]

GgQuaternion gg::GgQuaternion::add ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w ) const
inline

四元数に別の四元数を加算した結果を返す.

引数
x加える四元数の x 要素.
y加える四元数の y 要素.
z加える四元数の z 要素.
w加える四元数の w 要素.
戻り値
(x, y, z, w) を加えた四元数.

gg.h の 3801 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ conjugate()

GgQuaternion gg::GgQuaternion::conjugate ( ) const
inline

共役四元数に変換する.

戻り値
共役四元数.

gg.h の 4472 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ divide() [1/4]

GgQuaternion gg::GgQuaternion::divide ( const GgQuaternion & q) const
inline

四元数を別の四元数で除算した結果を返す.

引数
qGgQuaternion 型の四元数.
戻り値
q で割った四元数.

gg.h の 3984 行目に定義があります。

呼び出し関係図:

◆ divide() [2/4]

GgQuaternion gg::GgQuaternion::divide ( const GgVector & v) const
inline

四元数を別の四元数で除算した結果を返す.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v で割った四元数.

gg.h の 3973 行目に定義があります。

呼び出し関係図:

◆ divide() [3/4]

GgQuaternion gg::GgQuaternion::divide ( const GLfloat * a) const
inline

四元数を別の四元数で除算した結果を返す.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a で割った四元数.

gg.h の 3959 行目に定義があります。

呼び出し関係図:

◆ divide() [4/4]

GgQuaternion gg::GgQuaternion::divide ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w ) const
inline

四元数を別の四元数で除算した結果を返す.

引数
x割る四元数の x 要素.
y割る四元数の y 要素.
z割る四元数の z 要素.
w割る四元数の w 要素.
戻り値
(x, y, z, w) を割った四元数.

gg.h の 3947 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ euler() [1/3]

GgQuaternion gg::GgQuaternion::euler ( const GgVector & e) const
inline

四元数をオイラー角 (e[0], e[1], e[2]) で回転した四元数を返す.

引数
eオイラー角を表す GgVector 型の変数 (heading, pitch, roll) の参照.
戻り値
回転した四元数.
覚え書き
第 4 要素は無視する.

gg.h の 4312 行目に定義があります。

呼び出し関係図:

◆ euler() [2/3]

GgQuaternion gg::GgQuaternion::euler ( const GLfloat * e) const
inline

四元数をオイラー角 (e[0], e[1], e[2]) で回転した四元数を返す.

引数
eオイラー角を表す GLfloat 型の 3 要素の配列変数 (heading, pitch, roll).
戻り値
回転した四元数.

gg.h の 4298 行目に定義があります。

呼び出し関係図:

◆ euler() [3/3]

GgQuaternion gg::GgQuaternion::euler ( GLfloat heading,
GLfloat pitch,
GLfloat roll ) const
inline

四元数をオイラー角 (heading, pitch, roll) で回転した四元数を返す.

引数
headingy 軸中心の回転角.
pitchx 軸中心の回転角.
rollz 軸中心の回転角.
戻り値
回転した四元数.

gg.h の 4286 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ get()

void gg::GgQuaternion::get ( GLfloat * a) const
inline

四元数を取り出す.

引数
a四元数を格納する GLfloat 型の 4 要素の配列変数.

gg.h の 4496 行目に定義があります。

◆ getConjugateMatrix() [1/3]

GgMatrix gg::GgQuaternion::getConjugateMatrix ( ) const
inline

四元数の共役が表す回転の変換行列を取り出す.

戻り値
回転の変換を表す GgMatrix 型の変換行列.

gg.h の 4563 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ getConjugateMatrix() [2/3]

void gg::GgQuaternion::getConjugateMatrix ( GgMatrix & m) const
inline

四元数の共役が表す回転の変換行列を m に求める.

引数
m回転の変換行列を格納する GgMatrix 型の変数.

gg.h の 4553 行目に定義があります。

呼び出し関係図:

◆ getConjugateMatrix() [3/3]

void gg::GgQuaternion::getConjugateMatrix ( GLfloat * a) const
inline

四元数の共役が表す回転の変換行列を a に求める.

引数
a回転の変換行列を格納する GLfloat 型の 16 要素の配列変数.

gg.h の 4541 行目に定義があります。

呼び出し関係図:

◆ getMatrix() [1/3]

GgMatrix gg::GgQuaternion::getMatrix ( ) const
inline

四元数が表す回転の変換行列を取り出す.

戻り値
回転の変換を表す GgMatrix 型の変換行列.

gg.h の 4529 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ getMatrix() [2/3]

void gg::GgQuaternion::getMatrix ( GgMatrix & m) const
inline

四元数が表す回転の変換行列を m に求める.

引数
m回転の変換行列を格納する GgMatrix 型の変数.

gg.h の 4519 行目に定義があります。

呼び出し関係図:

◆ getMatrix() [3/3]

void gg::GgQuaternion::getMatrix ( GLfloat * a) const
inline

四元数が表す回転の変換行列を a に求める.

引数
a回転の変換行列を格納する GLfloat 型の 16 要素の配列変数.

gg.h の 4509 行目に定義があります。

被呼び出し関係図:

◆ invert()

GgQuaternion gg::GgQuaternion::invert ( ) const
inline

逆元に変換する.

戻り値
四元数の逆元.

gg.h の 4484 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadAdd() [1/4]

GgQuaternion & gg::GgQuaternion::loadAdd ( const GgQuaternion & q)
inline

四元数に別の四元数を加算した結果を格納する.

引数
qGgQuaternion 型の四元数.
戻り値
q を加えた四元数.

gg.h の 3639 行目に定義があります。

呼び出し関係図:

◆ loadAdd() [2/4]

GgQuaternion & gg::GgQuaternion::loadAdd ( const GgVector & v)
inline

四元数に別の四元数を加算した結果を格納する.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v を加えた四元数.

gg.h の 3628 行目に定義があります。

呼び出し関係図:

◆ loadAdd() [3/4]

GgQuaternion & gg::GgQuaternion::loadAdd ( const GLfloat * a)
inline

四元数に別の四元数を加算した結果を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a を加えた四元数.

gg.h の 3617 行目に定義があります。

呼び出し関係図:

◆ loadAdd() [4/4]

GgQuaternion & gg::GgQuaternion::loadAdd ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w )
inline

四元数に別の四元数を加算した結果を格納する.

引数
x加える四元数の x 要素.
y加える四元数の y 要素.
z加える四元数の z 要素.
w加える四元数の w 要素.
戻り値
(x, y, z, w) を加えた四元数.

gg.h の 3601 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadConjugate() [1/2]

GgQuaternion & gg::GgQuaternion::loadConjugate ( const GgQuaternion & q)
inline

引数に指定した四元数の共役四元数を格納する.

引数
qGgQuaternion 型の四元数.
戻り値
共役四元数.

gg.h の 4403 行目に定義があります。

呼び出し関係図:

◆ loadConjugate() [2/2]

gg::GgQuaternion & gg::GgQuaternion::loadConjugate ( const GLfloat * a)

引数に指定した四元数の共役四元数を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
共役四元数.

gg.cpp の 3393 行目に定義があります。

被呼び出し関係図:

◆ loadDivide() [1/4]

GgQuaternion & gg::GgQuaternion::loadDivide ( const GgQuaternion & q)
inline

四元を別の四元数で除算した結果を格納する.

引数
qGgQuaternion 型の四元数.
戻り値
q で割った四元数.

gg.h の 3787 行目に定義があります。

呼び出し関係図:

◆ loadDivide() [2/4]

GgQuaternion & gg::GgQuaternion::loadDivide ( const GgVector & v)
inline

四元を別の四元数で除算した結果を格納する.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v で割った四元数.

gg.h の 3776 行目に定義があります。

呼び出し関係図:

◆ loadDivide() [3/4]

GgQuaternion & gg::GgQuaternion::loadDivide ( const GLfloat * a)
inline

四元を別の四元数で除算した結果を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a で割った四元数.

gg.h の 3765 行目に定義があります。

呼び出し関係図:

◆ loadDivide() [4/4]

GgQuaternion & gg::GgQuaternion::loadDivide ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w )
inline

四元を別の四元数で除算した結果を格納する.

引数
x割る四元数の x 要素.
y割る四元数の y 要素.
z割る四元数の z 要素.
w割る四元数の w 要素.
戻り値
(x, y, z, w) を割った四元数.

gg.h の 3753 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadEuler() [1/2]

GgQuaternion & gg::GgQuaternion::loadEuler ( const GLfloat * e)
inline

オイラー角 (e[0], e[1], e[2]) で与えられた回転を表す四元数を格納する.

引数
eオイラー角を表す GLfloat 型の 3 要素の配列変数 (heading, pitch, roll).
戻り値
格納した回転を表す四元数.

gg.h の 4273 行目に定義があります。

呼び出し関係図:

◆ loadEuler() [2/2]

gg::GgQuaternion & gg::GgQuaternion::loadEuler ( GLfloat heading,
GLfloat pitch,
GLfloat roll )

オイラー角 (heading, pitch, roll) で与えられた回転を表す四元数を格納する.

引数
headingy 軸中心の回転角.
pitchx 軸中心の回転角.
rollz 軸中心の回転角.
戻り値
格納した回転を表す四元数.

gg.cpp の 3365 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadIdentity()

GgQuaternion & gg::GgQuaternion::loadIdentity ( )
inline

単位元を格納する.

戻り値
格納された単位元.

gg.h の 4123 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadInvert() [1/2]

GgQuaternion & gg::GgQuaternion::loadInvert ( const GgQuaternion & q)
inline

引数に指定した四元数の逆元を格納する.

引数
qGgQuaternion 型の四元数.
戻り値
四元数の逆元.

gg.h の 4422 行目に定義があります。

呼び出し関係図:

◆ loadInvert() [2/2]

gg::GgQuaternion & gg::GgQuaternion::loadInvert ( const GLfloat * a)

引数に指定した四元数の逆元を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
四元数の逆元.

gg.cpp の 3407 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadMatrix() [1/2]

GgQuaternion & gg::GgQuaternion::loadMatrix ( const GgMatrix & m)
inline

回転の変換行列 m を表す四元数を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
m による回転の変換に相当する四元数.

gg.h の 4113 行目に定義があります。

呼び出し関係図:

◆ loadMatrix() [2/2]

GgQuaternion & gg::GgQuaternion::loadMatrix ( const GLfloat * a)
inline

回転の変換行列を表す四元数を格納する.

引数
aGLfloat 型の 16 要素の変換行列.
戻り値
a による回転の変換に相当する四元数.

gg.h の 4101 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadMultiply() [1/4]

GgQuaternion & gg::GgQuaternion::loadMultiply ( const GgQuaternion & q)
inline

四元数に別の四元数を乗算した結果を格納する.

引数
qGgQuaternion 型の四元数.
戻り値
q を乗じた四元数.

gg.h の 3739 行目に定義があります。

呼び出し関係図:

◆ loadMultiply() [2/4]

GgQuaternion & gg::GgQuaternion::loadMultiply ( const GgVector & v)
inline

四元数に別の四元数を乗算した結果を格納する.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v を乗じた四元数.

gg.h の 3728 行目に定義があります。

呼び出し関係図:

◆ loadMultiply() [3/4]

GgQuaternion & gg::GgQuaternion::loadMultiply ( const GLfloat * a)
inline

四元数に別の四元数を乗算した結果を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a を乗じた四元数.

gg.h の 3717 行目に定義があります。

呼び出し関係図:

◆ loadMultiply() [4/4]

GgQuaternion & gg::GgQuaternion::loadMultiply ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w )
inline

四元数に別の四元数を乗算した結果を格納する.

引数
x掛ける四元数の x 要素.
y掛ける四元数の y 要素.
z掛ける四元数の z 要素.
w掛ける四元数の w 要素.
戻り値
(x, y, z, w) を掛けた四元数.

gg.h の 3705 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadNormalize() [1/2]

GgQuaternion & gg::GgQuaternion::loadNormalize ( const GgQuaternion & q)
inline

引数に指定した四元数を正規化して格納する.

引数
qGgQuaternion 型の四元数.
戻り値
正規化された四元数.

gg.h の 4384 行目に定義があります。

呼び出し関係図:

◆ loadNormalize() [2/2]

gg::GgQuaternion & gg::GgQuaternion::loadNormalize ( const GLfloat * a)

引数に指定した四元数を正規化して格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
正規化された四元数.

gg.cpp の 3381 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadRotate() [1/3]

GgQuaternion & gg::GgQuaternion::loadRotate ( const GLfloat * v)
inline

(v[0], v[1], v[2]) を軸として角度 v[3] 回転する四元数を格納する.

引数
v軸ベクトルと回転角を格納した GLfloat 型の 4 要素の配列変数.
戻り値
格納された回転を表す四元数.

gg.h の 4157 行目に定義があります。

呼び出し関係図:

◆ loadRotate() [2/3]

GgQuaternion & gg::GgQuaternion::loadRotate ( const GLfloat * v,
GLfloat a )
inline

(v[0], v[1], v[2]) を軸として角度 a 回転する四元数を格納する.

引数
v軸ベクトルを表す GLfloat 型の 3 要素の配列変数.
a回転角.
戻り値
格納された回転を表す四元数.

gg.h の 4146 行目に定義があります。

呼び出し関係図:

◆ loadRotate() [3/3]

gg::GgQuaternion & gg::GgQuaternion::loadRotate ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat a )

(x, y, z) を軸として角度 a 回転する四元数を格納する.

引数
x軸ベクトルの x 成分.
y軸ベクトルの y 成分.
z軸ベクトルの z 成分.
a回転角.
戻り値
格納された回転を表す四元数.

gg.cpp の 3307 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadRotateX()

gg::GgQuaternion & gg::GgQuaternion::loadRotateX ( GLfloat a)

x 軸中心に角度 a 回転する四元数を格納する.

引数
a回転角.
戻り値
格納された回転を表す四元数.

gg.cpp の 3329 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadRotateY()

gg::GgQuaternion & gg::GgQuaternion::loadRotateY ( GLfloat a)

y 軸中心に角度 a 回転する四元数を格納する.

引数
a回転角.
戻り値
格納された回転を表す四元数.

gg.cpp の 3341 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadRotateZ()

gg::GgQuaternion & gg::GgQuaternion::loadRotateZ ( GLfloat a)

z 軸中心に角度 a 回転する四元数を格納する.

引数
a回転角.
戻り値
格納された回転を表す四元数.

gg.cpp の 3353 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadSlerp() [1/4]

GgQuaternion & gg::GgQuaternion::loadSlerp ( const GgQuaternion & q,
const GgQuaternion & r,
GLfloat t )
inline

球面線形補間の結果を格納する.

引数
qGgQuaternion 型の四元数.
rGgQuaternion 型の四元数.
t補間パラメータ.
戻り値
格納した q, r を t で内分した四元数.

gg.h の 4339 行目に定義があります。

呼び出し関係図:

◆ loadSlerp() [2/4]

GgQuaternion & gg::GgQuaternion::loadSlerp ( const GgQuaternion & q,
const GLfloat * a,
GLfloat t )
inline

球面線形補間の結果を格納する.

引数
qGgQuaternion 型の四元数.
a四元数を格納した GLfloat 型の 4 要素の配列変数.
t補間パラメータ.
戻り値
格納した q, a を t で内分した四元数.

gg.h の 4352 行目に定義があります。

呼び出し関係図:

◆ loadSlerp() [3/4]

GgQuaternion & gg::GgQuaternion::loadSlerp ( const GLfloat * a,
const GgQuaternion & q,
GLfloat t )
inline

球面線形補間の結果を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
qGgQuaternion 型の四元数.
t補間パラメータ.
戻り値
格納した a, q を t で内分した四元数.

gg.h の 4365 行目に定義があります。

呼び出し関係図:

◆ loadSlerp() [4/4]

GgQuaternion & gg::GgQuaternion::loadSlerp ( const GLfloat * a,
const GLfloat * b,
GLfloat t )
inline

球面線形補間の結果を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
b四元数を格納した GLfloat 型の 4 要素の配列変数.
t補間パラメータ.
戻り値
格納した a, b を t で内分した四元数.

gg.h の 4325 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadSubtract() [1/4]

GgQuaternion & gg::GgQuaternion::loadSubtract ( const GgQuaternion & q)
inline

四元数から別の四元数を減算した結果を格納する.

引数
qGgQuaternion 型の四元数.
戻り値
q を引いた四元数.

gg.h の 3691 行目に定義があります。

呼び出し関係図:

◆ loadSubtract() [2/4]

GgQuaternion & gg::GgQuaternion::loadSubtract ( const GgVector & v)
inline

四元数から別の四元数を減算した結果を格納する.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v を引いた四元数.

gg.h の 3680 行目に定義があります。

呼び出し関係図:

◆ loadSubtract() [3/4]

GgQuaternion & gg::GgQuaternion::loadSubtract ( const GLfloat * a)
inline

四元数から別の四元数を減算した結果を格納する.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a を引いた四元数.

gg.h の 3669 行目に定義があります。

呼び出し関係図:

◆ loadSubtract() [4/4]

GgQuaternion & gg::GgQuaternion::loadSubtract ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w )
inline

四元数から別の四元数を減算した結果を格納する.

引数
x引く四元数の x 要素.
y引く四元数の y 要素.
z引く四元数の z 要素.
w引く四元数の w 要素.
戻り値
(x, y, z, w) を引いた四元数.

gg.h の 3653 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ multiply() [1/4]

GgQuaternion gg::GgQuaternion::multiply ( const GgQuaternion & q) const
inline

四元数に別の四元数を乗算した結果を返す.

引数
qGgQuaternion 型の四元数.
戻り値
q を掛けた四元数.

gg.h の 3933 行目に定義があります。

呼び出し関係図:

◆ multiply() [2/4]

GgQuaternion gg::GgQuaternion::multiply ( const GgVector & v) const
inline

四元数に別の四元数を乗算した結果を返す.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v を掛けた四元数.

gg.h の 3922 行目に定義があります。

呼び出し関係図:

◆ multiply() [3/4]

GgQuaternion gg::GgQuaternion::multiply ( const GLfloat * a) const
inline

四元数に別の四元数を乗算した結果を返す.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a を掛けた四元数.

gg.h の 3909 行目に定義があります。

呼び出し関係図:

◆ multiply() [4/4]

GgQuaternion gg::GgQuaternion::multiply ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w ) const
inline

四元数に別の四元数を乗算した結果を返す.

引数
x掛ける四元数の x 要素.
y掛ける四元数の y 要素.
z掛ける四元数の z 要素.
w掛ける四元数の w 要素.
戻り値
(x, y, z, w) を掛けた四元数.

gg.h の 3897 行目に定義があります。

呼び出し関係図:

◆ norm()

GLfloat gg::GgQuaternion::norm ( ) const
inline

四元数のノルムを求める.

戻り値
四元数のノルム.

gg.h の 3587 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ normalize()

GgQuaternion gg::GgQuaternion::normalize ( ) const
inline

正規化する.

戻り値
正規化された四元数.

gg.h の 4460 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator*() [1/3]

GgQuaternion gg::GgQuaternion::operator* ( const GgQuaternion & q) const
inline

gg.h の 4078 行目に定義があります。

呼び出し関係図:

◆ operator*() [2/3]

GgQuaternion gg::GgQuaternion::operator* ( const GgVector & v) const
inline

gg.h の 4074 行目に定義があります。

呼び出し関係図:

◆ operator*() [3/3]

GgQuaternion gg::GgQuaternion::operator* ( const GLfloat * a) const
inline

gg.h の 4070 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator*=() [1/3]

GgQuaternion & gg::GgQuaternion::operator*= ( const GgQuaternion & q)
inline

gg.h の 4030 行目に定義があります。

呼び出し関係図:

◆ operator*=() [2/3]

GgQuaternion & gg::GgQuaternion::operator*= ( const GgVector & v)
inline

gg.h の 4026 行目に定義があります。

呼び出し関係図:

◆ operator*=() [3/3]

GgQuaternion & gg::GgQuaternion::operator*= ( const GLfloat * a)
inline

gg.h の 4022 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator+() [1/3]

GgQuaternion gg::GgQuaternion::operator+ ( const GgQuaternion & q) const
inline

gg.h の 4054 行目に定義があります。

呼び出し関係図:

◆ operator+() [2/3]

GgQuaternion gg::GgQuaternion::operator+ ( const GgVector & v) const
inline

gg.h の 4050 行目に定義があります。

呼び出し関係図:

◆ operator+() [3/3]

GgQuaternion gg::GgQuaternion::operator+ ( const GLfloat * a) const
inline

gg.h の 4046 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator+=() [1/3]

GgQuaternion & gg::GgQuaternion::operator+= ( const GgQuaternion & q)
inline

gg.h の 4006 行目に定義があります。

呼び出し関係図:

◆ operator+=() [2/3]

GgQuaternion & gg::GgQuaternion::operator+= ( const GgVector & v)
inline

gg.h の 4002 行目に定義があります。

呼び出し関係図:

◆ operator+=() [3/3]

GgQuaternion & gg::GgQuaternion::operator+= ( const GLfloat * a)
inline

gg.h の 3998 行目に定義があります。

呼び出し関係図:

◆ operator-() [1/3]

GgQuaternion gg::GgQuaternion::operator- ( const GgQuaternion & q) const
inline

gg.h の 4066 行目に定義があります。

呼び出し関係図:

◆ operator-() [2/3]

GgQuaternion gg::GgQuaternion::operator- ( const GgVector & v) const
inline

gg.h の 4062 行目に定義があります。

呼び出し関係図:

◆ operator-() [3/3]

GgQuaternion gg::GgQuaternion::operator- ( const GLfloat * a) const
inline

gg.h の 4058 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator-=() [1/3]

GgQuaternion & gg::GgQuaternion::operator-= ( const GgQuaternion & q)
inline

gg.h の 4018 行目に定義があります。

呼び出し関係図:

◆ operator-=() [2/3]

GgQuaternion & gg::GgQuaternion::operator-= ( const GgVector & v)
inline

gg.h の 4014 行目に定義があります。

呼び出し関係図:

◆ operator-=() [3/3]

GgQuaternion & gg::GgQuaternion::operator-= ( const GLfloat * a)
inline

gg.h の 4010 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator/() [1/3]

GgQuaternion gg::GgQuaternion::operator/ ( const GgQuaternion & q) const
inline

gg.h の 4090 行目に定義があります。

呼び出し関係図:

◆ operator/() [2/3]

GgQuaternion gg::GgQuaternion::operator/ ( const GgVector & v) const
inline

gg.h の 4086 行目に定義があります。

呼び出し関係図:

◆ operator/() [3/3]

GgQuaternion gg::GgQuaternion::operator/ ( const GLfloat * a) const
inline

gg.h の 4082 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator/=() [1/3]

GgQuaternion & gg::GgQuaternion::operator/= ( const GgQuaternion & q)
inline

gg.h の 4042 行目に定義があります。

呼び出し関係図:

◆ operator/=() [2/3]

GgQuaternion & gg::GgQuaternion::operator/= ( const GgVector & v)
inline

gg.h の 4038 行目に定義があります。

呼び出し関係図:

◆ operator/=() [3/3]

GgQuaternion & gg::GgQuaternion::operator/= ( const GLfloat * a)
inline

gg.h の 4034 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator=() [1/4]

GgQuaternion & gg::GgQuaternion::operator= ( const GgQuaternion & q)
default

代入演算子.

引数
q代入元の四元数.
戻り値
代入後のこの四元数の参照.
呼び出し関係図:
被呼び出し関係図:

◆ operator=() [2/4]

GgQuaternion & gg::GgQuaternion::operator= ( const GgVector & v)
inline

gg.h の 3994 行目に定義があります。

呼び出し関係図:

◆ operator=() [3/4]

GgQuaternion & gg::GgQuaternion::operator= ( const GLfloat * a)
inline

gg.h の 3990 行目に定義があります。

呼び出し関係図:

◆ operator=() [4/4]

GgQuaternion & gg::GgQuaternion::operator= ( GgQuaternion && q)
default

ムーブ代入演算子.

引数
qムーブ代入元の四元数.
戻り値
ムーブ代入後のこの四元数の参照.
呼び出し関係図:

◆ rotate() [1/3]

GgQuaternion gg::GgQuaternion::rotate ( const GLfloat * v) const
inline

四元数を (v[0], v[1], v[2]) を軸として角度 v[3] 回転した四元数を返す.

引数
v軸ベクトルを表す GLfloat 型の 4 要素の配列変数.
戻り値
回転した四元数.

gg.h の 4219 行目に定義があります。

呼び出し関係図:

◆ rotate() [2/3]

GgQuaternion gg::GgQuaternion::rotate ( const GLfloat * v,
GLfloat a ) const
inline

四元数を (v[0], v[1], v[2]) を軸として角度 a 回転した四元数を返す.

引数
v軸ベクトルを表す GLfloat 型の 3 要素の配列変数.
a回転角.
戻り値
回転した四元数.

gg.h の 4208 行目に定義があります。

呼び出し関係図:

◆ rotate() [3/3]

GgQuaternion gg::GgQuaternion::rotate ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat a ) const
inline

四元数を (x, y, z) を軸として角度 a 回転した四元数を返す.

引数
x軸ベクトルの x 成分.
y軸ベクトルの y 成分.
z軸ベクトルの z 成分.
a回転角.
戻り値
回転した四元数.

gg.h の 4195 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ rotateX()

GgQuaternion gg::GgQuaternion::rotateX ( GLfloat a) const
inline

四元数を x 軸中心に角度 a 回転した四元数を返す.

引数
a回転角.
戻り値
回転した四元数.

gg.h の 4230 行目に定義があります。

呼び出し関係図:

◆ rotateY()

GgQuaternion gg::GgQuaternion::rotateY ( GLfloat a) const
inline

四元数を y 軸中心に角度 a 回転した四元数を返す.

引数
a回転角.
戻り値
回転した四元数.

gg.h の 4241 行目に定義があります。

呼び出し関係図:

◆ rotateZ()

GgQuaternion gg::GgQuaternion::rotateZ ( GLfloat a) const
inline

四元数を z 軸中心に角度 a 回転した四元数を返す.

引数
a回転角.
戻り値
回転した四元数.

gg.h の 4252 行目に定義があります。

呼び出し関係図:

◆ slerp() [1/2]

GgQuaternion gg::GgQuaternion::slerp ( const GgQuaternion & q,
GLfloat t ) const
inline

球面線形補間の結果を返す.

引数
qGgQuaternion 型の四元数.
t補間パラメータ.
戻り値
四元数を q に対して t で内分した結果.

gg.h の 4448 行目に定義があります。

呼び出し関係図:

◆ slerp() [2/2]

GgQuaternion gg::GgQuaternion::slerp ( GLfloat * a,
GLfloat t ) const
inline

球面線形補間の結果を返す.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
t補間パラメータ.
戻り値
四元数を a に対して t で内分した結果.

gg.h の 4434 行目に定義があります。

呼び出し関係図:

◆ subtract() [1/4]

GgQuaternion gg::GgQuaternion::subtract ( const GgQuaternion & q) const
inline

四元数から別の四元数を減算した結果を返す.

引数
qGgQuaternion 型の四元数.
戻り値
q を引いた四元数.

gg.h の 3883 行目に定義があります。

呼び出し関係図:

◆ subtract() [2/4]

GgQuaternion gg::GgQuaternion::subtract ( const GgVector & v) const
inline

四元数から別の四元数を減算した結果を返す.

引数
v四元数を格納した GgVector 型の変数.
戻り値
v を引いた四元数.

gg.h の 3872 行目に定義があります。

呼び出し関係図:

◆ subtract() [3/4]

GgQuaternion gg::GgQuaternion::subtract ( const GLfloat * a) const
inline

四元数から別の四元数を減算した結果を返す.

引数
a四元数を格納した GLfloat 型の 4 要素の配列変数.
戻り値
a を引いた四元数.

gg.h の 3861 行目に定義があります。

呼び出し関係図:

◆ subtract() [4/4]

GgQuaternion gg::GgQuaternion::subtract ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w ) const
inline

四元数から別の四元数を減算した結果を返す.

引数
x引く四元数の x 要素.
y引く四元数の y 要素.
z引く四元数の z 要素.
w引く四元数の w 要素.
戻り値
(x, y, z, w) を引いた四元数.

gg.h の 3849 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

このクラス詳解は次のファイルから抽出されました: