point.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2018 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 
20 #ifndef LIBMESH_POINT_H
21 #define LIBMESH_POINT_H
22 
23 // Local includes
24 #include "libmesh/type_vector.h"
25 
26 namespace libMesh
27 {
28 
38 class Point : public TypeVector<Real>
39 {
40 public:
41 
46  Point (const Real x=0.,
47  const Real y=0.,
48  const Real z=0.) :
49  TypeVector<Real> (x,y,z)
50  {}
51 
55  Point (const Point & p) :
56  TypeVector<Real> (p)
57  {}
58 
62  Point (const TypeVector<Real> & p) :
63  TypeVector<Real> (p)
64  {}
65 
69  ~Point() {}
70 
71 protected:
72 
76  friend class Node;
77 };
78 
79 } // namespace libMesh
80 
81 #endif // LIBMESH_POINT_H
A geometric point in (x,y,z) space associated with a DOF.
Definition: node.h:52
Point(const Point &p)
Definition: point.h:55
Point(const TypeVector< Real > &p)
Definition: point.h:62
Point(const Real x=0., const Real y=0., const Real z=0.)
Definition: point.h:46
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A geometric point in (x,y,z) space.
Definition: point.h:38