25 lines
587 B
C++
25 lines
587 B
C++
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JUNGFRAUJOCH_UNITCELL_H
|
|
#define JUNGFRAUJOCH_UNITCELL_H
|
|
|
|
#include <ostream>
|
|
|
|
struct UnitCell {
|
|
float a;
|
|
float b;
|
|
float c;
|
|
float alpha;
|
|
float beta;
|
|
float gamma;
|
|
};
|
|
|
|
inline std::ostream &operator<<( std::ostream &output, const UnitCell &in ) {
|
|
output << in.a << " " << in.b << " " << in.c;
|
|
output << " " << in.alpha << " " << in.beta << " " << in.gamma;
|
|
return output;
|
|
}
|
|
|
|
#endif //JUNGFRAUJOCH_UNITCELL_H
|