Skip to content

Commit

Permalink
Const-qualify non-modifying members.
Browse files Browse the repository at this point in the history
Refs #11056
  • Loading branch information
martyngigg committed Dec 7, 2015
1 parent 6527f46 commit 948317d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class MANTID_GEOMETRY_DLL OrientedLattice : public UnitCell {
void setU(const Kernel::DblMatrix &newU, const bool force = false);
void setUB(const Kernel::DblMatrix &newUB);
// get u and v vectors for Horace/Mslice
Kernel::V3D getuVector();
Kernel::V3D getvVector();
Kernel::V3D getuVector() const;
Kernel::V3D getvVector() const;
/// Return hkl from the Q-sample coordinates
Kernel::V3D hklFromQ(const Kernel::V3D &Q) const;
/// Return Q-sample coordinates from hkl
Expand Down
4 changes: 2 additions & 2 deletions Framework/Geometry/src/Crystal/OrientedLattice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ V3D OrientedLattice::qFromHKL(const V3D &hkl) const {
vector is not unique, but
all vectors can be obtaineb by multiplying with a scalar
@return u :: V3D vector along beam direction*/
Kernel::V3D OrientedLattice::getuVector() {
Kernel::V3D OrientedLattice::getuVector() const {
V3D z(0, 0, 1);
DblMatrix UBinv = UB;
UBinv.Invert();
Expand All @@ -170,7 +170,7 @@ Kernel::V3D OrientedLattice::getuVector() {
obtaineb by multiplying with a scalar
@return v :: V3D vector perpendicular to the beam direction, in the horizontal
plane*/
Kernel::V3D OrientedLattice::getvVector() {
Kernel::V3D OrientedLattice::getvVector() const {
V3D x(1, 0, 0);
DblMatrix UBinv = UB;
UBinv.Invert();
Expand Down

0 comments on commit 948317d

Please sign in to comment.