operator [] method

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

Returns a reference view of the inner vector at idx.

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

Implementation

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