Points&Forces (survey)
Software tools facilitating the task of surveying architecture
g_point.h
Go to the documentation of this file.
1 /*
2  Copyright 2010-2011 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 _G_POINT_H_
17 #define _G_POINT_H_
18 
19 // .NAME g_point
20 // .PORTABILITY : ansi C++
21 // .SECTION Author
22 // Pierre Smars
23 
24 #include "a_text.h"
25 #include "a_point.h"
26 #include <iostream>
27 
29 class g_point : public a_point
30 {
31  public:
32  inline g_point() : a_point() {}
33  inline g_point(double x, double y, double z) : a_point(x,y,z) {}
34  inline g_point(const float x[3]) : a_point(x) {}
35  inline g_point(const double x[3]) : a_point(x) {}
36  inline g_point(const a_point& p) : a_point(p) {}
37 
38  void print(std::ostream& o);
39  void print(a_text& o);
40 };
41 
42 #endif
a geometric point
Definition: g_point.h:30
g_point(const a_point &p)
Definition: g_point.h:36
g_point(double x, double y, double z)
Definition: g_point.h:33
void print(std::ostream &o)
Definition: g_point.cxx:24
g_point(const double x[3])
Definition: g_point.h:35
g_point()
Definition: g_point.h:32
g_point(const float x[3])
Definition: g_point.h:34