MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Array4

Method Array4

GTE/Mathematics/Array4.h:28–40  ·  view source on GitHub ↗

Construction. The first constructor generates an array of objects that are owned by Array4. The second constructor is given an array of objects that are owned by the caller. The array has bound0 columns, bound1 rows, bound2 slices, and bound3 cuboids.

Source from the content-addressed store, hash-verified

26 // of objects that are owned by the caller. The array has bound0
27 // columns, bound1 rows, bound2 slices, and bound3 cuboids.
28 Array4(size_t bound0, size_t bound1, size_t bound2, size_t bound3)
29 :
30 mBound0(bound0),
31 mBound1(bound1),
32 mBound2(bound2),
33 mBound3(bound3),
34 mObjects(bound0 * bound1 * bound2 * bound3),
35 mIndirect1(bound1 * bound2 * bound3),
36 mIndirect2(bound2 * bound3),
37 mIndirect3(bound3)
38 {
39 SetPointers(mObjects.data());
40 }
41
42 Array4(size_t bound0, size_t bound1, size_t bound2, size_t bound3, T* objects)
43 :

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected