MCPcopy Create free account
hub / github.com/RenderKit/embree / Sphere

Class Sphere

tutorials/verify/verify.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 struct Sphere
127 {
128 ALIGNED_CLASS_(16);
129 public:
130 Sphere () : pos(zero), r(zero) {}
131 Sphere (const Vec3fa& pos, float r) : pos(pos), r(r) {}
132 __forceinline BBox3fa bounds() const { return BBox3fa(pos-Vec3fa(r),pos+Vec3fa(r)); }
133 public:
134 Vec3fa pos;
135 float r;
136 };
137
138 void BoundsFunc(const struct RTCBoundsFunctionArguments* const args)
139 {

Callers 2

runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected