Пример #1
0
bool IntrPlane3Ellipsoid3<Real>::EllipsoidIsCulled () const
{
    Matrix3<Real> MInverse;
    mEllipsoid->GetMInverse(MInverse);
    Real discr = MInverse.QForm(mPlane->Normal,mPlane->Normal);
    Real root = Math<Real>::Sqrt(Math<Real>::FAbs(discr));
    Real sDist = mPlane->DistanceTo(mEllipsoid->Center);
    return sDist <= -root;
}
Пример #2
0
bool IntrPlane3Ellipsoid3<Real>::Test ()
{
    Matrix3<Real> MInverse;
    mEllipsoid->GetMInverse(MInverse);
    Real discr = MInverse.QForm(mPlane->Normal,mPlane->Normal);
    Real root = Math<Real>::Sqrt(Math<Real>::FAbs(discr));
    Real sDist = mPlane->DistanceTo(mEllipsoid->Center);
    return Math<Real>::FAbs(sDist) <= root;
}