AR_Engine_SDK
|
#include <XETransform.h>
Public 成员函数 | |
XETransform () | |
XETransform (const XMATRIX4 &mat4) | |
virtual | ~XETransform () |
void | SetRotateEuler (const xfloat32 fPitch, const xfloat32 fYaw, const xfloat32 fRoll) |
void | GetRotateEuler (xfloat32 &fPitch, xfloat32 &fYaw, xfloat32 &fRoll) const |
xfloat32 | GetEulerPitch () const |
xfloat32 | GetEulerYaw () const |
xfloat32 | GetEulerRoll () const |
void | SetQuaternion (const XQUATERNION &quat) |
XQUATERNION & | GetQuaternion () |
void | SetDirAndUp (const XVECTOR3 &vDir, const XVECTOR3 &vUp) |
void | GetDirAndUp (XVECTOR3 &vDir, XVECTOR3 &vUp) const |
void | SetLocation (const xfloat32 fX, const xfloat32 fY, const xfloat32 fZ) |
void | SetLocation (const XVECTOR3 &vLocation) |
XVECTOR3 & | GetLocation () |
void | SetScale (const xfloat32 fX, const xfloat32 fY, const xfloat32 fZ) |
void | SetScale (const XVECTOR3 &vScale) |
XVECTOR3 & | GetScale () |
XMATRIX4 | GetTransform () const |
void | SetFromMatrix4 (const XMATRIX4 &mt4) |
void | LogInfo (XEEngineInstance *pEngineIns) const |
X_FORCEINLINE void | SetWorldMatrix4 (const XMATRIX4 &mt4) |
X_FORCEINLINE const XMATRIX4 & | GetWorldMatrix4 () const |
const XQUATERNION & | GetQuaternion () const |
const XVECTOR3 & | GetLocation () const |
const XVECTOR3 & | GetScale () const |
xbool | operator== (const XETransform &rhs) const |
静态 Public 属性 | |
static const XVECTOR3 | TF_FORWARD |
static const XVECTOR3 | TF_RIGHT |
static const XVECTOR3 | TF_UP |
static const XVECTOR3 | TF_NORMAL |
static const XMATRIX4 | TF_IDENTITY |
友元 | |
class | XEActorComponent |
XETransform::XETransform | ( | ) |
XETransform::XETransform | ( | const XMATRIX4 & | mat4 | ) |
|
inlinevirtual |
void XETransform::GetDirAndUp | ( | XVECTOR3 & | vDir, |
XVECTOR3 & | vUp | ||
) | const |
获取前方向和上方向
@param vDir [out]前方向方向向量 @param vUp [out]上方向方向向量
xfloat32 XETransform::GetEulerPitch | ( | ) | const |
获取旋转变换的欧拉角
fPitch | 绕X轴旋转的角(右方向,俯仰角) |
xfloat32 XETransform::GetEulerRoll | ( | ) | const |
获取旋转变换的欧拉角
fRoll | 绕Z轴旋转的角(前方向,滚转角) |
xfloat32 XETransform::GetEulerYaw | ( | ) | const |
获取旋转变换的欧拉角
fYaw | 绕Y轴旋转的角(上方向,偏航角) |
XVECTOR3 & XETransform::GetLocation | ( | ) |
获取位置
@return 位置坐标
函数 | |
function XETransform | new () end |
function XETransform | new (mat4) end |
function XETransform | SetRotateEuler (fPitch, fYaw, fRoll) end |
function XETransform | GetRotateEuler () end |
function XETransform | GetEulerPitch () end |
function XETransform | GetEulerYaw () end |
function XETransform | GetEulerRoll () end |
function XETransform | SetQuaternion (quat) end |
function XETransform | GetQuaternion () end |
function XETransform | SetDirAndUp (vDir, vUp) end |
function XETransform | GetDirAndUp () end |
function XETransform | SetLocation (fX, fY, fZ) end |
function XETransform | SetLocation (vLocation) end |
function XETransform | GetLocation () end |
function XETransform | SetScale (fX, fY, fZ) end |
function XETransform | SetScale (vScale) end |
function XETransform | GetScale () end |
function XETransform | GetTransform () end |
function XETransform | SetFromMatrix4 (mt4) end |
function XETransform | LogInfo () end |
变量 | |
XETransform = {} | |
function XETransform GetDirAndUp | ( | ) |
function XETransform GetEulerPitch | ( | ) |
获取旋转变换的欧拉角
function XETransform GetEulerRoll | ( | ) |
获取旋转变换的欧拉角
function XETransform GetEulerYaw | ( | ) |
获取旋转变换的欧拉角
function XETransform GetLocation | ( | ) |
获取位置
function XETransform GetQuaternion | ( | ) |
获取Transform的旋转数据(四元数)
function XETransform GetRotateEuler | ( | ) |
获取旋转变换的欧拉角
function XETransform GetScale | ( | ) |
获取缩放
function XETransform GetTransform | ( | ) |
获取Transform矩阵
function XETransform LogInfo | ( | ) |
打印当前变换信息
function XETransform new | ( | ) |
XETransform_new00
function XETransform new | ( | mat4 | ) |
function XETransform SetDirAndUp | ( | vDir | , |
vUp | |||
) |
function XETransform SetFromMatrix4 | ( | mt4 | ) |
function XETransform SetLocation | ( | fX | , |
fY | , | ||
fZ | |||
) |
设置位置
fX | number 位置的x分量 |
fY | number 位置的y分量 |
fZ | number 位置的z分量 |
function XETransform SetLocation | ( | vLocation | ) |
function XETransform SetQuaternion | ( | quat | ) |
设置Transform的旋转数据(四元数)
quat | XQUATERNION 旋转数据(四元数) |
function XETransform SetRotateEuler | ( | fPitch | , |
fYaw | , | ||
fRoll | |||
) |
设置旋转变换的欧拉角。
fPitch | number 绕X轴旋转的角(右方向,俯仰角) |
fYaw | number 绕Y轴旋转的角(上方向,偏航角) |
fRoll | number 绕Z轴旋转的角(前方向,滚转角) |
function XETransform SetScale | ( | fX | , |
fY | , | ||
fZ | |||
) |
设置缩放
fX | number 缩放的x分量 |
fY | number 缩放的y分量 |
fZ | number 缩放的z分量 |
function XETransform SetScale | ( | vScale | ) |
XETransform = {} |