AR_Engine_SDK
|
Functions | |
function XCusOBB | new () end |
function XCusOBB | new (CusObb) end |
function XCusOBB | IsPointInOBB (vPoint) end |
function XCusOBB | CompleteExtAxis () end |
function XCusOBB | Clear () end |
function XCusOBB | BuildOBB (CusObb1, CusObb2) end |
function XCusOBB | BuildOBB (pVertexPosition, nVertCount) end |
function XCusOBB | BuildOBB (formAABB) end |
function XCusOBB | GetVertices (pVertexPosition, pIndices, bWire) end |
function XCusOBB | GetVertices (bWire) end |
function XCusAABB | new (aabb) end |
function XCusAABB | new (vMins, vMaxs) end |
function XCusAABB | AddVertex (v) end |
function XCusAABB | Build (obb) end |
function XCusAABB | Merge (subAABB) end |
function XCusAABB | CompleteMinsMaxs () end |
function XCusAABB | CompleteCenterExts () end |
function XCusAABB | IsPointIn (v) end |
function XCusAABB | IsAABBIn (aabb) end |
function XCusAABB | IsIntersect (aabb) end |
function XCusAABB | Build (aVertPos, iNumVert) end |
function XCusAABB | GetVertices (aVertPos, aIndices, bWire) end |
function XCusPlane | new (p) end |
function XCusPlane | new (n, d) end |
function XCusPlane | CreatePlane (v1, v2, v3) end |
function XCusSPlane | MakeType () end |
function XCusSPlane | MakeSignBits () end |
function XCusSPlane | MakeTypeAndSignBits () end |
function XCusCapsule | new (src) end |
function XCusCapsule | IsPointIn (vPos) end |
Variables | |
XCusOBB = {} | |
function XCusAABB AddVertex | ( | v | ) |
添加顶点信息
v | XVECTOR3 添加的顶点 |
function XCusAABB Build | ( | aVertPos | , |
iNumVert | |||
) |
根据给定的顶点信息,构建一个AABB
aVertPos | XVECTOR3 顶点数组buffer |
iNumVert | number 顶点数组中顶点的数目 |
function XCusOBB BuildOBB | ( | CusObb1 | , |
CusObb2 | |||
) |
function XCusOBB BuildOBB | ( | pVertexPosition | , |
nVertCount | |||
) |
根据给定的顶点信息,构建一个新的OBB
pVertexPosition | XVECTOR3 顶点数组buffer |
nVertCount | number 顶点数组中顶点的数目 |
function XCusOBB BuildOBB | ( | formAABB | ) |
function XEMagicCore__XEWarpPointInfo Clear | ( | ) |
清空OBB数据
XEMagicCore_XEObjectEntity_Clear00
XEMagicCore_XEBodyEntity_Clear00
XEMagicCore_XEWarpPointInfo_Clear00
function XCusAABB CompleteCenterExts | ( | ) |
由“最大”和“最小”点信息计算AABB包围盒中心点和到各个面距离信息
function XCusOBB CompleteExtAxis | ( | ) |
计算与3个坐标轴的交点坐标(以原点为中心)
function XCusAABB CompleteMinsMaxs | ( | ) |
由Center和Extents计算AABB包围盒“最大”和“最小”点信息
function XCusPlane CreatePlane | ( | v1 | , |
v2 | , | ||
v3 | |||
) |
根据三个点创建一个面
v1 | XVECTOR3 给定坐标点1 |
v2 | XVECTOR3 给定坐标点2 |
v3 | XVECTOR3 给定坐标点3 |
function XCusOBB GetVertices | ( | pVertexPosition | , |
pIndices | , | ||
bWire | |||
) |
XCusOBB_GetVertices00
pVertexPosition | XVECTOR3 |
pIndices | number |
bWire | boolean |
function XCusAABB GetVertices | ( | bWire | ) |
XCusOBB_GetVertices01
bWire | boolean |
XCusAABB_GetVertices01
bWire | boolean |
function XCusAABB GetVertices | ( | aVertPos | , |
aIndices | , | ||
bWire | |||
) |
XCusAABB_GetVertices00
aVertPos | XVECTOR3 |
aIndices | number |
bWire | boolean |
function XCusAABB IsAABBIn | ( | aabb | ) |
function XCusAABB IsIntersect | ( | aabb | ) |
function XCusAABB IsPointIn | ( | v | ) |
判断指定点是否在该AABB内
v | XVECTOR3 要判断的指定点坐标 |
function XCusCylinder IsPointIn | ( | vPos | ) |
判断指定点是否在该AABB内
vPos | XVECTOR3 要判断的指定点坐标 |
function XCusOBB IsPointInOBB | ( | vPoint | ) |
判断指定点是否在OBB内
vPoint | XVECTOR3 要判断的指定点坐标 |
function XCusSPlane MakeSignBits | ( | ) |
[引擎内部模块间调用接口]
function XCusSPlane MakeType | ( | ) |
[引擎内部模块间调用接口]
function XCusSPlane MakeTypeAndSignBits | ( | ) |
[引擎内部模块间调用接口]
function XCusAABB Merge | ( | subAABB | ) |
function XCusOBB new | ( | ) |
XCusOBB_new00
XCusAABB_new00
XCusPlane_new00
XCusSPlane_new00
XCusCapsule_new00
XCusCylinder_new00
function XCusAABB new | ( | vMins | , |
vMaxs | |||
) |
function XCusSPlane new | ( | p | ) |
XCusPlane_new01
p | XCusPlane |
XCusSPlane_new01
p | XCusSPlane |
function XCusSPlane new | ( | n | , |
d | |||
) |
XCusPlane_new02
n | XVECTOR3 |
d | number |
XCusSPlane_new02
n | XVECTOR3 |
d | number |
function XCusCylinder new | ( | src | ) |
XCusCapsule_new01
src | XCusCapsule |
XCusCylinder_new01
src | XCusCylinder |
XCusOBB = {} |