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

Method Array3

GTE/Mathematics/Array3.h:28–38  ·  view source on GitHub ↗

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

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, and bound2 slices.
28 Array3(size_t bound0, size_t bound1, size_t bound2)
29 :
30 mBound0(bound0),
31 mBound1(bound1),
32 mBound2(bound2),
33 mObjects(bound0 * bound1 * bound2),
34 mIndirect1(bound1 * bound2),
35 mIndirect2(bound2)
36 {
37 SetPointers(mObjects.data());
38 }
39
40 Array3(size_t bound0, size_t bound1, size_t bound2, T* objects)
41 :

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected