diff --git a/vcg/math/shot.h b/vcg/math/shot.h index e992661d..96631e4c 100644 --- a/vcg/math/shot.h +++ b/vcg/math/shot.h @@ -231,6 +231,11 @@ public: note: it is up to the caller to check the the matrix passed is a pure rototraslation */ void MultSimilarity( const Similarity & s){ MultMatrix(s.Matrix());} + + bool IsValid() const + { + return Intrinsics.PixelSizeMm[0]>0 && Intrinsics.PixelSizeMm[1]>0; + } }; // end class definition