前のページ次のページ上に戻るホーム SophiaFramework 2.2
SFB3DUtil
I3DUtil インターフェイスのラッパー クラスです。
#include <SFB3DUtil.hpp>
class SFB3DUtil : public SFBQuery;
typedef SFB3DUtil&          SFB3DUtilRef;
typedef SFB3DUtil*          SFB3DUtilPtr;
typedef SFB3DUtil**         SFB3DUtilHandle;
typedef const SFB3DUtil     ConstSFB3DUtil;
typedef const SFB3DUtil&    ConstSFB3DUtilRef;
typedef const SFB3DUtil*    ConstSFB3DUtilPtr;
typedef const SFB3DUtil**   ConstSFB3DUtilHandle;

継承図

SFB3DUtil クラスの継承図

バージョン

このクラスは BREW 2.1 以降でのみ使用可能です。

参照

BREW API I3DUtil

メンバ

パブリック関数
public
AddRef (SFBBase から継承) インターフェイスの参照カウントをインクリメントします。
public
GetRotateMatrix X、Y、またはZ軸を中心とした回転の変換マトリックスを計算します。
public
GetRotateVMatrix 原点からの与えられたベクトルを中心とした回転の変換マトリックスを計算します。
public
GetUnitVector ソースベクトルの単位ベクトルを計算します。
public
GetViewTransformMatrix 与えられた位置、見る方向、および見上げる方向について、 固定小数点の変換マトリックスを計算します。
public
static
Instance I3DUtil インターフェイスのインスタンスを取得します。
public
MatrixMultiply 2つの固定小数点マトリックスを掛け合わせます。
public
QueryInterface (SFBQuery から継承) このオブジェクトからの別の API を問い合わせます。
public
Release (SFBBase から継承) インターフェイスの参照カウントをデクリメントします。
public
Self (SFBQuery から継承) オブジェクトを単一インタフェースで実装する際に使用します。
public
SetIdentityMatrix 変換マトリックスの回転部分(3x3)をQ12形式の単位マトリックスに設定します。
public
SetTranslationMatrix Q12 固定小数点形式形式の与えられた平行移動ベクトルについて、 変換マトリックスの平行移動部分を設定します。
public
cos コサイン(余弦)を計算します。
public
sin サイン(正弦)を計算します。
public
sqrt 平方根を計算します。

SFB3DUtil::cos
コサイン(余弦)を計算します。
[ public ]
SInt32 cos(
    SInt32 angle   
);

参照

BREW API I3DUtil_cos


SFB3DUtil::GetRotateMatrix
X、Y、またはZ軸を中心とした回転の変換マトリックスを計算します。
[ public ]
SFCError GetRotateMatrix(
    SInt32 angle                        
    AEE3DTransformMatrix * pMatrixOut   
    AEE3DRotateType axis                
);

参照

BREW API I3DUtil_GetRotateMatrix


SFB3DUtil::GetRotateVMatrix
原点からの与えられたベクトルを中心とした回転の変換マトリックスを計算します。
[ public ]
SFCError GetRotateVMatrix(
    const AEE3DPoint * pVector          
    SInt32 angle                        
    AEE3DTransformMatrix * pMatrixOut   
);

参照

BREW API I3DUtil_GetRotateVMatrix


SFB3DUtil::GetUnitVector
ソースベクトルの単位ベクトルを計算します。
[ public ]
SFCError GetUnitVector(
    const AEE3DPoint * pSrc   
    AEE3DPoint * pDst         
);

解説

結果のベクトルはQ12形式です。

参照

BREW API I3DUtil_GetUnitVector


SFB3DUtil::GetViewTransformMatrix
与えられた位置、見る方向、および見上げる方向について、 固定小数点の変換マトリックスを計算します。
[ public ]
SFCError GetViewTransformMatrix(
    const AEE3DPoint * pPosition        
    const AEE3DPoint * pLook            
    const AEE3DPoint * pUp              
    AEE3DTransformMatrix * pMatrixOut   
);

解説

各方向ベクトルは、3D ポイントまたはQ12 形式でのベクトルとして指定します。

参照

BREW API I3DUtil_GetViewTransformMatrix


SFB3DUtil::Instance
I3DUtil インターフェイスのインスタンスを取得します。
[ public, static ]
SFUBrewPtr<SFB3DUtil> Instance(Void);

SFB3DUtil::MatrixMultiply
2つの固定小数点マトリックスを掛け合わせます。
[ public ]
SFCError MatrixMultiply(
    AEE3DTransformMatrix * pMatrixOut        
    const AEE3DTransformMatrix * pMatrixIn   
);

参照

BREW API I3DUtil_MatrixMultiply


SFB3DUtil::SetIdentityMatrix
変換マトリックスの回転部分(3x3)をQ12形式の単位マトリックスに設定します。
[ public ]
SFCError SetIdentityMatrix(
    AEE3DTransformMatrix * pMatrixOut   
);

参照

BREW API I3DUtil_SetIdentityMatrix


SFB3DUtil::SetTranslationMatrix
Q12 固定小数点形式形式の与えられた平行移動ベクトルについて、 変換マトリックスの平行移動部分を設定します。
[ public ]
SFCError SetTranslationMatrix(
    AEE3DPoint * pVector             
    AEE3DTransformMatrix * pMatrix   
);

参照

BREW API I3DUtil_SetTranslationMatrix


SFB3DUtil::sin
サイン(正弦)を計算します。
[ public ]
SInt32 sin(
    SInt32 angle   
);

参照

BREW API I3DUtil_sin


SFB3DUtil::sqrt
平方根を計算します。
[ public ]
UInt32 sqrt(
    UInt32 number   
);

参照

BREW API I3DUtil_sqrt