Skip to content

Commit 5790e7e

Browse files
committed
improve ang start + step
1 parent 7064b91 commit 5790e7e

File tree

5 files changed

+232
-91
lines changed

5 files changed

+232
-91
lines changed

MMVII/include/MMVII_Ptxd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ template <class Type,const int Dim> class cSegment
860860
const tPt& P2() const; ///< Accessor
861861
tPt& P1() ; ///< Accessor
862862
tPt& P2() ; ///< Accessor
863+
void Swap(); ///< swap P1 P2 in place
863864

864865
tPt V12() const; ///< Vector P1->P2
865866
tPt Middle() const; ///< P middle

MMVII/include/MMVII_StaticLidar.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ private :
3333
std::string mRasterDistance;
3434
std::string mRasterIntensity;
3535
std::string mRasterMask;
36-
tREAL8 mThetaMin, mThetaMax;
37-
tREAL8 mPhiMin, mPhiMax;
36+
std::string mRasterX;
37+
std::string mRasterY;
38+
std::string mRasterZ;
39+
40+
tREAL8 mThetaStart, mThetaStep;
41+
tREAL8 mPhiStart, mPhiStep;
3842
int mMaxCol, mMaxLine;
3943
cRotation3D<tREAL8> mVertRot;
4044
};

MMVII/src/Geoms/PtsBox.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ template <class Type,const int Dim> cPtxd<Type,Dim>& cSegment<Type,Dim>::P1() {
114114
template <class Type,const int Dim> cPtxd<Type,Dim>& cSegment<Type,Dim>::P2() {return mP2;}
115115

116116

117+
template <class Type,const int Dim> void cSegment<Type,Dim>::Swap()
118+
{
119+
std::swap(mP1, mP2);
120+
}
121+
117122
template <class Type,const int Dim> cPtxd<Type,Dim> cSegment<Type,Dim>::V12() const {return mP2-mP1;}
118123
template <class Type,const int Dim> cPtxd<Type,Dim> cSegment<Type,Dim>::Middle() const {return (mP1+mP2)/Type(2);}
119124

0 commit comments

Comments
 (0)