Points&Forces (core)
Software tools facilitating the task of surveying architecture
a_intern.h
Go to the documentation of this file.
1 /*
2 Copyright 2010-2019 Pierre SMARS (smars@yuntech.edu.tw)
3 This program is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 2 of the License, or
6 (at your option) any later version.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 #ifndef _VE_INTERN_H_
17 #define _VE_INTERN_H_
18 
19 #include "a_mat.h"
20 
21 // .NAME a_intern
22 // .SECTION Author
23 // Pierre Smars
24 
25 #include <iostream>
26 
28 class a_intern : public a_mat
29 {
30 public:
31  inline a_intern() : a_mat(3,3) {for (int i = 0; i<3; i++) (*this)(i,i)=1; }
32  a_intern(const a_mat& m);
33  static const std::string help();
34  inline void s(double v) {(*this)(0,0)=v;(*this)(1,1)=v;}
35  inline void sx(double v) {(*this)(0,0)=v;}
36  inline void sy(double v) {(*this)(1,1)=v;}
37  inline void stheta(double v) {(*this)(0,1)=v;}
38  inline void u0(double v) {(*this)(0,2)=v;}
39  inline void v0(double v) {(*this)(1,2)=v;}
40 
41  inline double sx() {return (*this)(0,0);}
42  inline double sy() {return (*this)(1,1);}
43  inline double stheta() {return (*this)(0,1);}
44  inline double u0() {return (*this)(0,2);}
45  inline double v0() {return (*this)(1,2);}
46 };
47 #endif
intern calibration matrix
Definition: a_intern.h:29
a_intern()
Definition: a_intern.h:31
double v0()
Definition: a_intern.h:45
void sy(double v)
Definition: a_intern.h:36
double sx()
Definition: a_intern.h:41
void sx(double v)
Definition: a_intern.h:35
void v0(double v)
Definition: a_intern.h:39
static const std::string help()
Definition: a_intern.cxx:19
void u0(double v)
Definition: a_intern.h:38
double stheta()
Definition: a_intern.h:43
void stheta(double v)
Definition: a_intern.h:37
double u0()
Definition: a_intern.h:44
double sy()
Definition: a_intern.h:42
void s(double v)
Definition: a_intern.h:34
Definition: a_mat.h:42