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

Method bounds

kernels/common/scene_instance_array.h:38–45  ·  view source on GitHub ↗

calculates the (correct) interpolated bounds */

Source from the content-addressed store, hash-verified

36
37 /* calculates the (correct) interpolated bounds */
38 __forceinline BBox3fa bounds(size_t i, size_t itime0, size_t itime1, float f) const
39 {
40 if (unlikely(gsubtype == GTY_SUBTYPE_INSTANCE_QUATERNION))
41 return xfmBounds(slerp(l2w(i, itime0), l2w(i, itime1), f),
42 lerp(getObjectBounds(i, itime0), getObjectBounds(i, itime1), f));
43 return xfmBounds(lerp(l2w(i, itime0), l2w(i, itime1), f),
44 lerp(getObjectBounds(i, itime0), getObjectBounds(i, itime1), f));
45 }
46
47 public:
48

Callers 2

buildBoundsMethod · 0.45
createPrimRefArrayMBMethod · 0.45

Calls 5

xfmBoundsFunction · 0.85
validFunction · 0.70
slerpFunction · 0.50
lerpFunction · 0.50

Tested by

no test coverage detected