32 #ifdef INLINE_FUNCTIONS
41 SCVector3::spherical_coord(
double theta,
double phi,
44 double rsin_theta = r*sin(theta);
45 _v[0]=rsin_theta*cos(phi);
46 _v[1]=rsin_theta*sin(phi);
51 SCVector3::dist(
const SCVector3 &s)
const
53 double x=_v[0]-s._v[0],y=_v[1]-s._v[1],z=_v[2]-s._v[2];
54 return sqrt(x*x + y*y + z*z);