示例#1
0
文件: XMath.cpp 项目: 373137461/OBS
BOOL Bounds::IntersectsOBB(const Bounds &test, const Matrix &transform) const
{
    Bounds testT = test.GetTransformedBounds(transform);
    Bounds thisT = GetTransformedBounds(transform.GetTranspose());

    if(Intersects(testT) && thisT.Intersects(test))
        return TRUE;

    return FALSE;
}