Skip to main content Link Menu Expand (external link) Document Search Copy Copied

PVector& last()

Returns the last PVector in the array

Returns

A reference to the last PVector in the array

Example

VectorArr arr({PVector(1, 2, 3), PVector(4, 5, 6)});

arr.last() += PVector(1, 1, 1);
//arr.arr = [[1, 2, 3], [5, 6, 7]]