Debian Codegraph @

avogadro/core/internalcoordinates.h

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #ifndef AVOGADRO_CORE_INTERNALCOORDINATES_H
7 #define AVOGADRO_CORE_INTERNALCOORDINATES_H
8
9 #include "avogadrocore.h"
10
11 #include "array.h"
12 #include "molecule.h"
13 #include "vector.h"
14
15 namespace Avogadro {
16 namespace Core {
17
18 /** A simple struct to define internal / z-matrix coordinates. */
19 struct InternalCoordinate
20 {
21 Index a = MaxIndex;
22 Index b = MaxIndex;
23 Index c = MaxIndex;
24 Real length = 0.0;
25 Real angle = 0.0;
26 Real dihedral = 0.0;
27 };
28
29 AVOGADROCORE_EXPORT Array<Vector3> internalToCartesian(
30 const Molecule& molecule, const Array<InternalCoordinate>& internalCoords);
31
32 AVOGADROCORE_EXPORT Array<InternalCoordinate> cartesianToInternal(
33 const Molecule& molecule);
34
35 } // namespace Core
36 } // namespace Avogadro
37
38 #endif // AVOGADRO_CORE_INTERNALCOORDINATES_H