|
Clipper
|
#include <coords.h>
Public Member Functions | |
| Coord_grid () | |
| 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 | |
| Public Member Functions inherited from clipper::Vec3< int > | |
| Vec3 () | |
| null constructor | |
| bool | equals (const Vec3< int > &v, const int &tol) const |
| test equality | |
| const int & | operator[] (const int &i) const |
| get element | |
| Vec3< int > | unit () const |
| return unit vector with same direction as this vector | |
| bool | is_null () const |
| test for null vector | |
| String | format () const |
| return formatted String representation | |
| const Vec3< int > & | operator+= (const Vec3< int > &v) |
| add another vector to this one | |
| const Vec3< int > & | operator-= (const Vec3< int > &v) |
| subtract another vector from this one | |
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) |
Additional Inherited Members | |
| Static Public Member Functions inherited from clipper::Vec3< int > | |
| static Vec3< int > | zero () |
| return zero vector | |
| static Vec3< int > | null () |
| return null vector (only valid for floating point types) | |
| static int | dot (const Vec3< int > &v1, const Vec3< int > &v2) |
| Vector dot product (equivalent to *). | |
| static Vec3< int > | cross (const Vec3< int > &v1, const Vec3< int > &v2) |
| Vector cross product. | |
Grid coordinate.
|
inline |
null constructor
|
inline |
convert to Coord_map
|
inline |
convert to Coord_frac using given Grid_sampling
Fractional coordinate is not normalised onto range 0..1
| g | The grid concerned |
|
inline |
reduce to unit box: (0..nu-1, 0..nv-1, 0..nw-1)
| g | The grid concerned |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
grid indexing operator
Return the index in a 1-d array corresponding to this coordinate for a zero based grid.
| g | The grid concerned. |
|
inline |
grid deindexing operator
Return the coordinate corresponding to a given index in a zero based grid.
| g | The grid concerned. |
| String clipper::Coord_grid::format | ( | ) | const |
return formatted String representation