Add atoms generation methods
This commit is contained in:
23
src/md/Atom.cpp
Normal file
23
src/md/Atom.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @file Atom.cpp
|
||||
* @author jun <jun@firmwarejun.net>
|
||||
* @brief Atom definitions
|
||||
* @version 0.1
|
||||
* @date 2023-08-05
|
||||
*
|
||||
* Copyright (c) 2023 jun <https://git.firmwarejun.net/jun/MolecularDynamics2>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "Atom.hpp"
|
||||
|
||||
void printAtom(Atom atom) {
|
||||
std::cout << "Atom(" << atom.x << ", " << atom.y << ", " << atom.z << ")" << std::endl;
|
||||
}
|
||||
|
||||
void printAtoms(std::vector<Atom> atoms) {
|
||||
for (auto atom : atoms)
|
||||
printAtom(atom);
|
||||
}
|
||||
Reference in New Issue
Block a user