Mercurial > repos > public > sbplib
changeset 158:685ba6e6c679 feature/grids
Added abstract methods to Grid.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 19 Feb 2016 15:59:36 +0100 |
parents | ea8103ad2cc5 |
children | ce10ebde3123 |
files | +grid/Grid.m |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/+grid/Grid.m Fri Feb 19 14:28:27 2016 +0100 +++ b/+grid/Grid.m Fri Feb 19 15:59:36 2016 +0100 @@ -9,11 +9,16 @@ % points returns a n x d matrix containing the coordinates for all points. X = points(obj) + + % Restricts the grid function gf on obj to the subgrid g. + gf = restrictFunc(gf, g) + + % Projects the grid function gf on obj to the grid g. + gf = projectFunc(gf, g) end end - %% Should it be able to return a cell size aswell? For an equidistant grid this would be know %% for other grids the constructor would have to make something up. %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter.