sc::SphereShape(3)
π NAME π
sc::SphereShape β the sphere shape class, bestie. This is the sc::SphereShape(3) page from the MPQC manual, and we're gonna get you comfy with it. π«Ά
β¨ SYNOPSIS β¨
Inherits sc::Shape.
πΈ Public Member Functions πΈ
SphereShape (const SCVector3 &, double)β constructor that takes aconst SCVector3 &and adouble. Signature is right there, no cap. β¨SphereShape (const Ref< KeyVal > &)β constructor that takes aconst Ref< KeyVal > &. That's the whole listed signature, bestie. πSphereShape (const SphereShape &)β copy constructor from anotherSphereShape. Iconic copy behavior, literally right there in the name. πvoid boundingbox (double minvalue, double maxvalue, SCVector3 &p1, SCVector3 &p2)β returnsvoid, and takesdouble minvalue,double maxvalue, plus twoSCVector3 &refs:p1andp2. All the deets, preserved. π¦double radius () constβ no args, returns adouble, and it'sconst. Clean. πΈconst SCVector3 & origin () constβ no args, returns aconst SCVector3 &, and it'sconst. Slay. πdouble distance_to_surface (const SCVector3 &r, SCVector3 *grad=0) constβ takesconst SCVector3 &rand an optionalSCVector3 *grad=0, returnsdouble, and it'sconst. Not me keeping every character exact πvoid print (std::ostream &o=ExEnv::out0()) constβ returnsvoid, takes an optionalstd::ostream &o=ExEnv::out0(), and it'sconst. The page says it does exactly this: Print information about the object. π¨οΈβ¨double radius (double r)β the otherradiusoverload: takes adouble rand returns adouble. Two radius entries, both invited to the function party. πconst SCVector3 & origin (const SCVector3 &o)β takes aconst SCVector3 &oand returns aconst SCVector3 &. Anotheroriginoverload, fully accounted for. πint gradient_implemented () constβ no args, returns anint, and it'sconst. Short king, but crucial. π₯
π«Ά Additional Inherited Members π«Ά
No extra members are listed under this heading. It's just the heading doing its little main character moment β that's it, no items. π
βοΈ Author βοΈ
Generated automatically by Doxygen for MPQC from the source code.
okay bestie, that's the whole page π this little manual page is Version 2.3.1, dated Sun Oct 4 2020 β mwah, bye! ππ«Ά
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms