add at() to PIVector2D

This commit is contained in:
2020-10-28 17:12:40 +03:00
parent f951593c62
commit dd4f21c3e0

View File

@@ -160,6 +160,7 @@ public:
inline T & element(size_t row, size_t col) {return mat[row * cols_ + col];}
inline const T & element(size_t row, size_t col) const {return mat[row * cols_ + col];}
inline const T & at(size_t row, size_t col) const {return mat[row * cols_ + col];}
inline Row operator[](size_t index) {return Row(this, index);}
inline RowConst operator[](size_t index) const {return RowConst(this, index);}
inline T * data(size_t index = 0) {return mat.data(index);}