Compare commits

2 Commits

Author SHA1 Message Date
f99cd70921 Merge branch 'master' of https://git.shs.tools/SHS/pip 2020-10-28 17:12:48 +03:00
dd4f21c3e0 add at() to PIVector2D 2020-10-28 17:12:40 +03:00

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);}