ivutils
Loading...
Searching...
No Matches
Sphere (Sphere)

Sphere - sphere.

Important members and methods of the class:

  • this->init(vec_type R, const Vector_3 &center) - constructor, builds an sphere with radius R and centre at &center.

Example

Vector_3 origin (0,0,0); //Lets make sphere with radius R and centre at (0, 0, 0)
double r = 2;
Sphere sphere(r, &origin);