?? xintersection.cpp
字號:
#include "XMathLib.h"
#include "XGeomLib.h"
#include "XGVolume.h"
using namespace XMathLib;
namespace XGeomLib
{
//計算三角形和面之間的交線.
float InterSection(XTriangle& tri,XTriangle& tri2,XLineSegment& lineSeg)
{
return 1;;
}
float InterSection(XTriangle& tri,XPlan& plan,XLineSegment& lineSeg)
{
return 1;;
}
//只檢測不計算.
float InterSection(XTriangle& tri,XTriangle& tri2g)
{
return 1;;
}
float InterSection(XTriangle& tri,XPlan& plan)
{
return 1;;
}
float InterSection(XGCylinder& cylinder, XGFrustum& frustum)
{
return 1;;
}
float InterSection(XGAABB& aabb, XGFrustum& frustum)
{
return 1;;
}
float InterSection(XGOBB& obb,XGFrustum& frutum)
{
return 1;;
}
float InterSection(XGShpere& shpere,XGFrustum& frustum)
{
return 1;;
}
//BOX之間的測試
float InterSection(XGOBB& boxA,XGOBB& boxB)
{
return 1;;
}
float InterSection(XGAABB& aabbA,XGAABB& aabbB)
{
return 1;;
}
//射線和體之間的測試.
float InterSection(XRay& ray, XGAABB& box,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
float InterSection(XRay& ray, XGFrustum& frustum ,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
float InterSection(XRay& ray, XGShpere& shpere,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
float InterSection(XRay& ray, XGCylinder& cylinder,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
//線段和體之間的相交
float InterSection(XLineSegment& lineSeg, XGAABB& box,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
float InterSection(XLineSegment& lineSeg, XGFrustum& frustum ,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
float InterSection(XLineSegment& lineSeg, XGShpere& shpere,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
float InterSection(XLineSegment& lineSeg, XGCylinder& cylinder,XPoint& pIn,XPoint& pOut)
{
return 1;;
}
//平面和體之間相交
float InterSection(XTriangle& tri, XGAABB& box,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XTriangle& tri, XGFrustum& frustum ,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XTriangle& tri, XGShpere& shpere,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XTriangle& tri, XGCylinder& cylinder,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XPlan& plan, XGAABB& box,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XPlan& plan, XGFrustum& frustum ,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XPlan& plan, XGShpere& shpere,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
float InterSection(XPlan& plan, XGCylinder& cylinder,XPoint& pStart,XPoint& pEnd)
{
return 1;;
}
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -