---
name: "sc_CS2Sphere"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_CS2Sphere"
---

# sc\_CS2Sphere(3)

## NAME

sc::CS2Sphere

## SYNOPSIS

### Public Member Functions

**CS2Sphere** (const **SCVector3** &v, double rad)\
 **CS2Sphere** (double x, double y, double z, double rad)\
 void **initialize** (**SCVector3** &v, double rad)\
 **CS2Sphere** & **operator=** (const **CS2Sphere** &s)\
 double **distance** (**CS2Sphere** &asphere)\
 double **common\_radius** (**CS2Sphere** &asphere)\
 const **SCVector3** & **center** (void) const\
 double **x** () const\
 double **y** () const\
 double **z** () const\
 **SCVector3** **center\_vec** (const **CS2Sphere** &asphere)\
 double **radius** (void) const\
 void **recenter** (const **SCVector3** &v)\
 void **print** (std::ostream &os=**ExEnv::out0**()) const\
 int **intersect** (**CS2Sphere** \*s, int n\_spheres) const\

### Static Public Member Functions

static void **print\_counts** (std::ostream &=**ExEnv::out0**())\

### Static Public Attributes

static int **n\_no\_spheres\_**\
 static int **n\_probe\_enclosed\_by\_a\_sphere\_**\
 static int **n\_probe\_center\_not\_enclosed\_**\
 static int **n\_surface\_of\_s0\_not\_covered\_**\
 static int **n\_plane\_totally\_covered\_**\
 static int **n\_internal\_edge\_not\_covered\_**\
 static int **n\_totally\_covered\_**\

## Author

Generated automatically by Doxygen for MPQC from the source code.
