예제 #1
0
bool Triangle::IsInBackOf( const Plane& P ) const
{
    return ( !P.OnFrontSide( m_Vec1 ) && !P.OnFrontSide( m_Vec2 ) && !P.OnFrontSide( m_Vec3 ) );
}
예제 #2
0
bool Triangle::IsInFrontOf( const Plane& P ) const
{
    return ( P.OnFrontSide( m_Vec1 ) && P.OnFrontSide( m_Vec2 ) && P.OnFrontSide( m_Vec3 ) );
}