Пример #1
0
RNBoolean R3Contains(const R3Point& point, const R3Sphere& sphere)
{
    // Return whether point contains sphere
    if (!sphere.IsPoint()) return FALSE;
    if (!R3Contains(point, sphere.Center())) return FALSE;
    return TRUE;
}
Пример #2
0
RNBoolean R3Contains(const R3Triangle& triangle, const R3Sphere& sphere)
{
    // Return whether triangle contains sphere 
    if (!sphere.IsPoint()) return FALSE;
    if (!R3Contains(triangle, sphere.Center())) return FALSE;
    return TRUE;
}
Пример #3
0
RNBoolean R3Contains(const R3Span& span, const R3Sphere& sphere)
{
    // Return whether span contains sphere 
    if (!sphere.IsPoint()) return FALSE;
    if (!R3Contains(span, sphere.Center())) return FALSE;
    return TRUE;
}
Пример #4
0
RNBoolean R3Contains(const R3Plane& plane, const R3Sphere& sphere)
{
    // Return whether plane contains sphere 
    if (!sphere.IsPoint()) return FALSE;
    if (!R3Contains(plane, sphere.Center())) return FALSE;
    return TRUE;
}
Пример #5
0
RNBoolean R3Contains(const R3Ray& ray, const R3Sphere& sphere)
{
    // Return whether ray contains sphere 
    if (!sphere.IsPoint()) return FALSE;
    if (!R3Contains(ray, sphere.Center())) return FALSE;
    return TRUE;
}