G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsPoint.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 // Assumes that Eigen library has been already included - like with gsVector.h
17 
18 namespace gismo
19 {
25 template<int d, class T>
26 class gsPoint : public gsVector<T, d>
27 {
28 public:
29  typedef gsVector<T, d> Base;
30 
31  typedef gsPoint<d, T> Self;
32 
33  typedef typename gsEigen::aligned_allocator<Self> aalloc;
34 
35  typedef T Scalar_t;
36 
37  gsPoint() : Base(), m_vertexIndex((size_t)0) {}
38 
39  gsPoint(T x, T y, size_t index) : Base(), m_vertexIndex(index) { *this << x, y; }
40 
41  inline int getVertexIndex() const { return m_vertexIndex; }
42 
43 private:
44  size_t m_vertexIndex;
45 }; // class gsPoint
46 
47 } // namespace gismo
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition: gsVector.h:35
A Point in T^d, with an index number.
Definition: gsPoint.h:26