Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. int testSphereClone(BRLCAD::Sphere sph) /* Tests Sphere's Clone function */
  2. {
  3.     BRLCAD::Sphere sph2;
  4.     sph2=sph.clone();
  5.         if(sph2.Center().coordinates[0]==sph.Center().coordinates[0] && sph2.Center().coordinates[1]==sph.Center().coordinates[1] && sph2.Center().coordinates[2]==sph.Center().coordinates[2] && sph2.Radius()==sph.Radius() ) return 0; /* Checks if the two Spheres are equal */
  6.     return 1;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement