📄 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 + -