|
occ
|
Class representing and holding data for an Atom in 3D space. More...
#include <atom.h>
Public Member Functions | |
| void | rotate (const Mat3 &rotation) |
| rotate the position of this atom about the origin by the provided rotation matrix | |
| void | translate (const Vec3 &translation) |
| translate the position of this atom by the provided translation (Bohr) | |
| Vec3 | position () const |
| convenience helper to convert this position into Vec3 | |
| void | set_position (const Vec3 &v) |
| convenience helper to set this position from Vec3 | |
| double | square_distance (double xx, double yy, double zz) const |
| the square euclidean distance from another point in space (Bohr^2) | |
| double | square_distance (const Atom &other) const |
| the square euclidean distance from another atom (Bohr^2) | |
Public Attributes | |
| int | atomic_number |
| the atomic number of this atom i.e. which element it is | |
| double | x |
| 3D coordinates in Bohr | |
| double | y |
| double | z |
Class representing and holding data for an Atom in 3D space.
Small, minimal structure designed to hold very little information and be trivially copyable.
|
inline |
convenience helper to convert this position into Vec3
|
inline |
rotate the position of this atom about the origin by the provided rotation matrix
|
inline |
convenience helper to set this position from Vec3
|
inline |
the square euclidean distance from another atom (Bohr^2)
|
inline |
the square euclidean distance from another point in space (Bohr^2)
|
inline |
translate the position of this atom by the provided translation (Bohr)
the atomic number of this atom i.e. which element it is
| double occ::core::Atom::x |
3D coordinates in Bohr
| double occ::core::Atom::y |
| double occ::core::Atom::z |