45#include "shapedLatticeSpherical.hpp"
47#include "lattice/shapedLattice.hpp"
52 shapedLatticeSpherical::shapedLatticeSpherical(RealType latticeConstant,
53 std::string latticeType,
55 shapedLattice(latticeConstant, latticeType) {
56 sphereRadius_ = radius;
58 dimension[0] = 2.0 * radius;
59 dimension[1] = 2.0 * radius;
60 dimension[2] = 2.0 * radius;
61 setGridDimension(dimension);
63 origin[0] = latticeConstant / 2.0;
64 origin[1] = latticeConstant / 2.0;
65 origin[2] = latticeConstant / 2.0;
72 bool shapedLatticeSpherical::isInterior(
Vector3d point) {
74 if (point.
length() <= sphereRadius_) isIT =
true;
Real length()
Returns the length of this vector.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.