operator [] method

  1. @override
VecPoint3f operator [](
  1. int idx
)
override

Returns a reference view of the inner vector at idx.

Mutations performed through the returned VecPoint3f (e.g. add, []=, length) are applied in place and reflected in this VecVecPoint3f. The view does not own the pointed-to memory: calling VecPoint3f.dispose is a safe no-op, and the view is only valid while this VecVecPoint3f is not structurally modified (resize/reserve/replace of the inner vector).

Implementation

@override
VecPoint3f operator [](int idx) => VecPoint3f._view(ccore.std_VecVecPoint3f_get_p(ptr, idx));