示例#1
0
文件: R3Cont.C 项目: acplus/peptalk
RNBoolean R3Contains(const R3Box& box, const R3Halfspace& halfspace)
{
    // Return whether box contains halfspace
    RNOctant octant = halfspace.Normal().Octant();
    R3Point corner = box.Corner(octant);
    if (!RNIsFinite(corner.X())) return FALSE;
    if (!RNIsFinite(corner.Y())) return FALSE;
    if (!RNIsFinite(corner.Z())) return FALSE;
    RNAbort("Not Implemented");
    return FALSE;
}
示例#2
0
文件: R3Box.C 项目: acplus/peptalk
const RNBoolean R3Box::
IsFinite (void) const
{
    // Return whether bounding box contains a finite amount of space
    return ((!IsEmpty()) && 
	    (RNIsFinite(minpt.X()) && RNIsFinite(minpt.Y()) && RNIsFinite(minpt.Z())) && 
	    (RNIsFinite(maxpt.X()) && RNIsFinite(maxpt.Y()) && RNIsFinite(maxpt.Z())));
}
示例#3
0
const RNBoolean R3Point::
IsFinite(void) const
{
    // Return whether point is finite
    return (RNIsFinite(v[0]) && RNIsFinite(v[1]) && RNIsFinite(v[2]));
}