28 #ifdef INLINE_FUNCTIONS
37 SCVector3::spherical_coord(
double theta,
double phi,
40 double rsin_theta = r*sin(theta);
41 _v[0]=rsin_theta*cos(phi);
42 _v[1]=rsin_theta*sin(phi);
47 SCVector3::dist(
const SCVector3 &s)
const
49 double x=_v[0]-s._v[0],y=_v[1]-s._v[1],z=_v[2]-s._v[2];
50 return sqrt(x*x + y*y + z*z);