coordinate.
|
Public Member Functions |
| Coord_grid () |
| null constructor
|
| Coord_grid (const Vec3< int > v) |
| constructor: copy/convert
|
| Coord_grid (const int &u, const int &v, const int &w) |
| constructor: from u,v,w
|
| Coord_grid (const Grid &g, const int &index) |
| constructor: from a grid and an index in that grid
|
const int & | u () const |
| get u
|
const int & | v () const |
| get v
|
const int & | w () const |
| get w
|
int & | u () |
| set u
|
int & | v () |
| set v
|
int & | w () |
| set w
|
Coord_map | coord_map () const |
| convert to Coord_map
|
Coord_frac | coord_frac (const Grid_sampling &g) const |
| convert to Coord_frac using given Grid_sampling
|
Coord_grid | transform (const Isymop &op) const |
| return transformed coordinate
|
Coord_grid | unit (const Grid_sampling &g) const |
| reduce to unit box: (0..nu-1, 0..nv-1, 0..nw-1)
|
const Coord_grid & | next (const Grid &g) |
| increment in storage order (see index())
|
const Coord_grid & | next (const Grid_range &g) |
| increment in storage order (see index())
|
bool | last (const Grid &g) const |
| test if done in storage order (see index())
|
bool | last (const Grid_range &g) const |
| test if done in storage order (see index())
|
int | index (const Grid &g) const |
| grid indexing operator
|
void | deindex (const Grid &g, const int &index) |
| grid deindexing operator
|
String | format () const |
| return formatted String representation
|
Friends |
Coord_grid | operator- (const Coord_grid &r1) |
Coord_grid | operator+ (const Coord_grid &r1, const Coord_grid &r2) |
Coord_grid | operator- (const Coord_grid &r1, const Coord_grid &r2) |
Coord_grid | operator* (const int &s, const Coord_grid &r1) |
int | operator== (const Coord_grid &r1, const Coord_grid &r2) |
int | operator!= (const Coord_grid &r1, const Coord_grid &r2) |
Coord_grid | operator* (const Isymop &op, const Coord_grid &r1) |
coordinate.