diff --git a/homog2d.hpp b/homog2d.hpp index 2b5fe218..73f896b4 100644 --- a/homog2d.hpp +++ b/homog2d.hpp @@ -243,8 +243,7 @@ Templated by Floating-Point Type (FPT) and by type M (type::IsEpipmat or type::I template class Hmatrix_ { - template - friend class Root; + template friend class Root; template friend void @@ -942,7 +941,9 @@ class IntersectM template class FRect_ { - private: + template friend class FRect_; + +private: Point2d_ _ptR1,_ptR2; public: @@ -1174,6 +1175,8 @@ HOMOG2D_INUMTYPE width( const FRect_& rect ) template class Circle_ { + template friend class Circle_; + private: FPT _radius; Point2d_ _center; @@ -1411,12 +1414,10 @@ enum class Dtype : char template class Root { - template - friend class Hmatrix_; + template friend class Hmatrix_; // This is needed so we can convert from, say, Point2d_ to Point2d_ - template - friend class Root; + template friend class Root; template friend Point2d_ @@ -2279,6 +2280,8 @@ Hmatrix_::buildFrom4Points( template class Segment_ { + template friend class Segment_; + private: Point2d_ _ptS1, _ptS2;