Mercurial > repos > public > sbplib
comparison +grid/Grid.m @ 155:cf748f33cd5b feature/grids
Removed some extra lines, added some notes and comments. Fixed classname.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 18 Feb 2016 17:17:41 +0100 |
parents | 7aee9eba3bb8 |
children | 685ba6e6c679 |
comparison
equal
deleted
inserted
replaced
154:c7b2f645101f | 155:cf748f33cd5b |
---|---|
5 o = N(obj) | 5 o = N(obj) |
6 | 6 |
7 % d returns the spatial dimension of the grid | 7 % d returns the spatial dimension of the grid |
8 o = D(obj) | 8 o = D(obj) |
9 | 9 |
10 % points returns a n x d matrix containing the coordianets for all points. | 10 % points returns a n x d matrix containing the coordinates for all points. |
11 X = points(obj) | 11 X = points(obj) |
12 end | 12 end |
13 end | 13 end |
14 | 14 |
15 | 15 |
16 | 16 |
17 %% Should it be able to return a cell size aswell? For an equidistant grid this would be know | 17 %% Should it be able to return a cell size aswell? For an equidistant grid this would be know |
18 %% for other grids the constructor would have to make something up. | 18 %% for other grids the constructor would have to make something up. |
19 %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter. | 19 %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter. |
20 | |
21 | |
22 %Should define boundaries somehow, look in stitchSchemes. |