oILAB
Loading...
Searching...
No Matches
ReciprocalLatticeDirection.h
Go to the documentation of this file.
1/* This file is part of gbLAB.
2 *
3 * gbLAB is distributed without any warranty under the MIT License.
4 */
5
6
7#ifndef gbLAB_ReciprocalLatticeDirection_h_
8#define gbLAB_ReciprocalLatticeDirection_h_
9
10#include <LatticeModule.h>
11
12namespace gbLAB
13{
14 template <int dim>
16 /* inherits */ protected ReciprocalLatticeVector<dim>
17 {
21
22
26 const Lattice<dim>& lat) ;
27
31
36 double planeSpacing() const;
37
42 int stacking() const;
43
48 {
49 return static_cast<const ReciprocalLatticeVector<dim>&>(*this);
50 }
51
52 };
53
54 template<int dim>
55 basic_ostream<char>& operator<<(basic_ostream<char>& s, const ReciprocalLatticeDirection<dim>& m);
56} // end namespace
57#endif
Lattice class.
Definition Lattice.h:34
IntScalarType dot(const LatticeVector< dim > &other) const
basic_ostream< char > & operator<<(basic_ostream< char > &s, const LatticeDirection< dim > &m)
Eigen::Matrix< double, dim, 1 > VectorDimD
Definition LatticeCore.h:24
long long int IntScalarType
Definition LatticeCore.h:26
Eigen::Matrix< IntScalarType, dim, 1 > VectorDimI
Definition LatticeCore.h:27
LatticeCore< dim >::IntScalarType IntScalarType
ReciprocalLatticeDirection(const ReciprocalLatticeDirection< dim > &other)=default
LatticeCore< dim >::VectorDimD VectorDimD
double planeSpacing() const
Returns the spacing between two consecutive lattice planes.
LatticeCore< dim >::VectorDimI VectorDimI
int stacking() const
Returns the number of planes in the stacking sequence.
const ReciprocalLatticeVector< dim > & reciprocalLatticeVector() const
Returns a constant reference to the base class (ReciprocalLatticeVector)