Answer

     if ((x >= 0.0) && (x <= 1.0) && (y >= 0.0) &&
         (y <= 1.0) && (z >= 0.0) && (z <= 1.0)) {
       printf("The molecule is within the unit cube.");
     }

Return to lesson.



Joseph L. Zachary
Hamlet Project
Department of Computer Science
University of Utah