libMesh
point.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2017 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 Node is like a Point, but with more information.
Definition: node.h:52
Point(const Point &p)
Copy-constructor.
Definition: point.h:55
Point(const TypeVector< Real > &p)
Copy-constructor.
Definition: point.h:62
The libMesh namespace provides an interface to certain functionality in the library.
Point(const Real x=0., const Real y=0., const Real z=0.)
Constructor.
Definition: point.h:46
PetscErrorCode Vec x
This class defines a vector in LIBMESH_DIM dimensional space of type T.
Definition: tensor_tools.h:30
~Point()
Empty.
Definition: point.h:69
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition: point.h:38