52#include "shapedLatticeRod.hpp"
56#include "lattice/shapedLattice.hpp"
61 shapedLatticeRod::shapedLatticeRod(RealType latticeConstant,
62 std::string latticeType, RealType radius,
64 shapedLattice(latticeConstant, latticeType) {
68 dimension[0] = 3.0 * radius;
69 dimension[1] = 3.0 * radius;
70 dimension[2] = length + 3.0 * radius;
71 setGridDimension(dimension);
84 bool shapedLatticeRod::isInterior(
Vector3d point) {
93 if (abs(z) >= rodLength_ / 2.0) {
94 RealType delta_z = abs(z) - rodLength_ / 2.0;
95 distance = sqrt((x * x) + (y * y) + (delta_z * delta_z));
101 if (
distance <= rodRadius_) { isIT =
true; }
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
Real distance(const DynamicVector< Real > &v1, const DynamicVector< Real > &v2)
Returns the distance between two DynamicVectors.