Skip to content
Snippets Groups Projects
Commit c2acb169 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

bugfix: pass by reference where value is purposedly changed

parent 5053449d
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ double PolyhedralFace::getPyramidalVolume() const { return rperp*area/3; } ...@@ -161,7 +161,7 @@ double PolyhedralFace::getPyramidalVolume() const { return rperp*area/3; }
//! Sets qperp and qpa according to argument q and to this polygon's normal. //! Sets qperp and qpa according to argument q and to this polygon's normal.
void PolyhedralFace::decompose_q( const cvector_t q, complex_t& qperp, cvector_t qpa ) const void PolyhedralFace::decompose_q( const cvector_t q, complex_t& qperp, cvector_t& qpa ) const
{ {
qperp = normal.dot(q); qperp = normal.dot(q);
qpa = q - qperp*normal; qpa = q - qperp*normal;
......
...@@ -55,7 +55,7 @@ private: ...@@ -55,7 +55,7 @@ private:
kvector_t normal; //!< normal vector of this polygon's plane kvector_t normal; //!< normal vector of this polygon's plane
double rperp; //!< distance of this polygon's plane from the origin, along 'normal' double rperp; //!< distance of this polygon's plane from the origin, along 'normal'
double radius_2d; //!< radius of enclosing cylinder double radius_2d; //!< radius of enclosing cylinder
void decompose_q( const cvector_t q, complex_t& qperp, cvector_t qpa ) const; void decompose_q( const cvector_t q, complex_t& qperp, cvector_t& qpa ) const;
complex_t ff_n_core( int m, const cvector_t qpa ) const; complex_t ff_n_core( int m, const cvector_t qpa ) const;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment