linmath: Make mat.rows[n] and mat.cols[n] assignable to

This commit is contained in:
rdb 2022-10-19 16:04:57 +02:00
parent 25d11b3b17
commit 0b7c694f10
2 changed files with 4 additions and 4 deletions

View File

@ -90,8 +90,8 @@ PUBLISHED:
INLINE_LINMATH FLOATNAME(LVecBase3) get_col(int col) const;
MAKE_SEQ(get_rows, size, get_row);
MAKE_SEQ(get_cols, size, get_col);
MAKE_SEQ_PROPERTY(rows, size, get_row);
MAKE_SEQ_PROPERTY(cols, size, get_col);
MAKE_SEQ_PROPERTY(rows, size, get_row, set_row);
MAKE_SEQ_PROPERTY(cols, size, get_col, set_col);
INLINE_LINMATH FLOATNAME(LVecBase2) get_row2(int row) const;
INLINE_LINMATH FLOATNAME(LVecBase2) get_col2(int col) const;

View File

@ -105,8 +105,8 @@ PUBLISHED:
MAKE_SEQ(get_rows, size, get_row);
MAKE_SEQ(get_cols, size, get_col);
MAKE_SEQ(get_row3s, size, get_row3);
MAKE_SEQ_PROPERTY(rows, size, get_row);
MAKE_SEQ_PROPERTY(cols, size, get_col);
MAKE_SEQ_PROPERTY(rows, size, get_row, set_row);
MAKE_SEQ_PROPERTY(cols, size, get_col, set_col);
// these versions inline better
INLINE_LINMATH void get_row(FLOATNAME(LVecBase4) &result_vec, int row) const;