|
AR_Engine_SDK
|
Functions | |
| function XVECTOR2 | __call () |
| function XVECTOR2 | __call (fValue) |
| function XVECTOR2 | __call (fx, fy) |
| function XVECTOR2 | __call (vRhs) |
| function XVECTOR2 | Normalize () |
| function XVECTOR2 | Set (fx, fy) |
| function XVECTOR2 | Clear () |
| function XVECTOR2 | IsZero () |
| function XVECTOR2 | IsEquals (vec, fEpsilon) |
| function XVECTOR2 | Magnitude () |
| function XVECTOR2 | SquaredMagnitude () |
| function XVECTOR2 | MinMemberValue () |
| function XVECTOR2 | MaxMemberValue () |
| function XVECTOR2 | Snap () |
| function XVECTOR2 | AddVecWith (vec) |
| function XVECTOR2 | SubVecWith (vec) |
| function XVECTOR2 | MulFloatWith (fvalue) |
| function XVECTOR2 | DevFloatWith (fvalue) |
| function XVECTOR3 | new () |
| function XVECTOR3 | new (m) |
| function XVECTOR3 | new (x, y, z) |
| function XVECTOR3 | new (v) |
| function XVECTOR3 | Set (_x, _y, _z) |
| function XVECTOR3 | IsEquals (v, epsilon) |
| function XVECTOR3 | MagnitudeH () |
| function XVECTOR3 | SquaredMagnitudeH () |
| function XVECTOR3 | MinMember () |
| function XVECTOR3 | MaxMember () |
| function XVECTOR3 | CrossProduct (v1, v2) |
| function XVECTOR3 | MulFloatWith (f) |
| function XVECTOR3 | DevFloatWith (f) |
| function XVECTOR4 | new (_x, _y, _z, _w) |
| function XVECTOR4 | new (f) |
| function XVECTOR4 | Set (_x, _y, _z, _w) |
| function XMATRIX3 | new (c) |
| function XMATRIX3 | new (rkMatrix) |
| function XMATRIX3 | new (fEntry00, fEntry01, fEntry02, fEntry10, fEntry11, fEntry12, fEntry20, fEntry21, fEntry22) |
| function XMATRIX3 | GetRow (i) |
| function XMATRIX3 | GetCol (i) |
| function XMATRIX3 | Transpose () |
| function XMATRIX3 | Identity () |
| function XMATRIX3 | Translate (x, y) |
| function XMATRIX3 | Rotate (fRad) |
| function XMATRIX3 | InverseTM () |
| function XMATRIX3 | MulMatWith (mRight) |
| function XMATRIX4 | new (mat) |
Variables | |
| XVECTOR2 = {} | |
| XVECTOR2 | x = 0 |
| @type number More... | |
| XVECTOR2 | y = 0 |
| @type number More... | |
| XVECTOR3 = {} | |
| XVECTOR3 | z = 0 |
| @type number More... | |
| XVECTOR4 = {} | |
| XVECTOR4 | w = 0 |
| @type number More... | |
| XMATRIX3 = {} | |
| XMATRIX3 | IDENTITY = 0 |
| XMATRIX3 | CLEARED = 0 |
| XMATRIX3 | _11 = 0 |
| @type number More... | |
| XMATRIX3 | _12 = 0 |
| @type number More... | |
| XMATRIX3 | _13 = 0 |
| @type number More... | |
| XMATRIX3 | _21 = 0 |
| @type number More... | |
| XMATRIX3 | _22 = 0 |
| @type number More... | |
| XMATRIX3 | _23 = 0 |
| @type number More... | |
| XMATRIX3 | _31 = 0 |
| @type number More... | |
| XMATRIX3 | _32 = 0 |
| @type number More... | |
| XMATRIX3 | _33 = 0 |
| @type number More... | |
| XMATRIX4 = {} | |
| XMATRIX4 | _14 = 0 |
| @type number More... | |
| XMATRIX4 | _24 = 0 |
| @type number More... | |
| XMATRIX4 | _34 = 0 |
| @type number More... | |
| XMATRIX4 | _41 = 0 |
| @type number More... | |
| XMATRIX4 | _42 = 0 |
| @type number More... | |
| XMATRIX4 | _43 = 0 |
| @type number More... | |
| XMATRIX4 | _44 = 0 |
| @type number More... | |
| function XVECTOR3 AddVecWith | ( | vec | ) |
| function XVECTOR2 Clear | ( | ) |
将XVECTOR2向量的三个分量分别置为0
| function XVECTOR3 CrossProduct | ( | v1 | , |
| v2 | |||
| ) |
| function XVECTOR2 DevFloatWith | ( | fvalue | ) |
@manual xelua_XEngine_XVECTOR2_DevFloatWith_manual XVECTOR2_DevFloatWith_manual
| fvalue | number |
| function XVECTOR3 DevFloatWith | ( | f | ) |
@manual xelua_XEngine_XVECTOR3_DevFloatWith_manual XVECTOR3_DevFloatWith_manual
| f | number |
| function XMATRIX3 GetCol | ( | i | ) |
| function XMATRIX3 GetRow | ( | i | ) |
| function XMATRIX3 Identity | ( | ) |
将当前矩阵设为单位矩阵,即其主对角线上的元素全为1,其他元素全为0。
| function XMATRIX3 InverseTM | ( | ) |
将当前矩阵进行逆转置矩阵的运算,即先对矩阵计算出逆矩阵,再对逆矩阵做转置矩阵的计算。
| function XVECTOR2 IsEquals | ( | vec | , |
| fEpsilon | |||
| ) |
判断当 XVECTOR2向量与向量vec是否在fEpsilon的误差内相等
| vec | XVECTOR2 待比较的向量 |
| fEpsilon | number 误差容限,代表浮点数不精确度的公差 |
| function XVECTOR4 IsEquals | ( | v | , |
| epsilon | |||
| ) |
判断当 XVECTOR2向量与向量vec是否在fEpsilon的误差内相等
| v | XVECTOR3 |
| epsilon | number |
判断当 XVECTOR2向量与向量vec是否在fEpsilon的误差内相等
| v | XVECTOR4 |
| epsilon | number |
| function XVECTOR3 IsZero | ( | ) |
判断XVECTOR2向量是否是零向量,当2个分量均是0时,当前向量才是零向量。
| function XVECTOR3 Magnitude | ( | ) |
计算当前XVECTOR2向量的模
| function XVECTOR3 MagnitudeH | ( | ) |
计算当前向量 x 分量与 z 分量平方和的平方根,并返回结果。
| function XVECTOR3 MaxMember | ( | ) |
获取当前向量分量中的最大值
| function XVECTOR2 MaxMemberValue | ( | ) |
获取当前向量XY分量中的最大值
| function XVECTOR3 MinMember | ( | ) |
获取当前向量分量中的最小值
| function XVECTOR2 MinMemberValue | ( | ) |
获取当前向量XY分量中的最小值
| function XVECTOR2 MulFloatWith | ( | fvalue | ) |
@manual xelua_XEngine_XVECTOR2_MulFloatWith_manual XVECTOR2_MulFloatWith_manual
| fvalue | number |
| function XVECTOR3 MulFloatWith | ( | f | ) |
@manual xelua_XEngine_XVECTOR3_MulFloatWith_manual XVECTOR3_MulFloatWith_manual
| f | number |
| function XMATRIX3 MulMatWith | ( | mRight | ) |
| function XVECTOR3 new | ( | ) |
| function XMATRIX4 new | ( | v | ) |
| function XVECTOR4 new | ( | _x | , |
| _y | , | ||
| _z | , | ||
| _w | |||
| ) |
| function XMATRIX4 new | ( | c | ) |
| function XMATRIX3 new | ( | fEntry00 | , |
| fEntry01 | , | ||
| fEntry02 | , | ||
| fEntry10 | , | ||
| fEntry11 | , | ||
| fEntry12 | , | ||
| fEntry20 | , | ||
| fEntry21 | , | ||
| fEntry22 | |||
| ) |
XMATRIX3_new03
| fEntry00 | number |
| fEntry01 | number |
| fEntry02 | number |
| fEntry10 | number |
| fEntry11 | number |
| fEntry12 | number |
| fEntry20 | number |
| fEntry21 | number |
| fEntry22 | number |
| function XVECTOR3 Normalize | ( | ) |
将当前XVECTOR2向量单位化,并返回单位化之前向量的模。单位化是指将向量的模变为1.
| function XMATRIX3 Rotate | ( | fRad | ) |
将当前矩阵旋转fRad弧度的矩阵。
| fRad | number 表示旋转角(弧度)。 |
| function XVECTOR2 Set | ( | fx | , |
| fy | |||
| ) |
设置XVECTOR2向量的2个分量
| fx | number 为XVECTOR2的x分量赋值的变量 |
| fy | number 为XVECTOR2的y分量赋值的变量 |
| function XVECTOR3 Set | ( | _x | , |
| _y | , | ||
| _z | |||
| ) |
设置XVECTOR2向量的2个分量
| _x | number |
| _y | number |
| _z | number |
| function XVECTOR4 Set | ( | _x | , |
| _y | , | ||
| _z | , | ||
| _w | |||
| ) |
设置XVECTOR2向量的2个分量
| _x | number |
| _y | number |
| _z | number |
| _w | number |
| function XVECTOR3 Snap | ( | ) |
修正XY分量到[-1,1]之间
| function XVECTOR3 SquaredMagnitude | ( | ) |
计算当前XVECTOR2向量的模的平方。
| function XVECTOR3 SquaredMagnitudeH | ( | ) |
计算当前 XVECTOR3 向量 x 分量和 z 分量的平方和
| function XVECTOR3 SubVecWith | ( | vec | ) |
将当前矩阵设为表示平移信息的矩阵,平移向量为(x,y)。此时,当前矩阵不包含旋转和缩放信息。
| x | number 表示平移向量的x分量 |
| y | number 表示平移向量的y分量 |
| function XMATRIX3 Transpose | ( | ) |
将当前矩阵进行转置运算,即将交换矩阵的行和列。
| XMATRIX4 _11 = 0 |
@type number
| XMATRIX4 _12 = 0 |
@type number
| XMATRIX4 _13 = 0 |
@type number
| XMATRIX4 _14 = 0 |
@type number
| XMATRIX4 _21 = 0 |
@type number
| XMATRIX4 _22 = 0 |
@type number
| XMATRIX4 _23 = 0 |
@type number
| XMATRIX4 _24 = 0 |
@type number
| XMATRIX4 _31 = 0 |
@type number
| XMATRIX4 _32 = 0 |
@type number
| XMATRIX4 _33 = 0 |
@type number
| XMATRIX4 _34 = 0 |
@type number
| XMATRIX4 _41 = 0 |
@type number
| XMATRIX4 _42 = 0 |
@type number
| XMATRIX4 _43 = 0 |
@type number
| XMATRIX4 _44 = 0 |
@type number
| XMATRIX3 CLEARED = 0 |
| XMATRIX4 IDENTITY = 0 |
| XVECTOR4 w = 0 |
@type number
| XVECTOR4 x = 0 |
@type number
| XMATRIX3 = {} |
| XMATRIX4 = {} |
| XVECTOR2 = {} |
| XVECTOR3 = {} |
| XVECTOR4 = {} |
| XVECTOR4 y = 0 |
@type number
| XVECTOR4 z = 0 |
@type number
1.8.15