Repository navigation
v0.17.0: Release 0.17.0: matrices, vectors and tables.
Matrices, vectors and tables.
Added
Matrix::new([[1, 2], [3, 4]])draws values in square brackets. Each
cell is aTxtfromcell(r, c),row(r)orcolumn(c);
row_frame,column_frameandcell_framegive hidden outlines to
fade in..cell_width(px)leaves room for longer values.axes.vector(x, y)draws an arrow from the origin whose tip is two
signals;v.to(x, y, seconds)moves it and.label("v")follows it.axes.apply_matrix(m, seconds)maps the plane through a 2 × 2 matrix:
a transformed grid is drawn over the original, and plots, series,
vectors and placed nodes move with it.axes.matrix()is theMat2
signal;Mat2::aftermultiplies andMat2::detgives the determinant.Table::newtakes the column titles and.row(..)adds rows.
insert_row,push_rowandremove_rowslide the other rows into
place,sort_by_columnandsort_bymove every row to its sorted
place, andtable.row(i)is aTableRowwith a background to
highlight it.- Guide lesson 15, and the
matrix_multiply,linear_mapand
table_sortexamples.