G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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
18namespace gismo
19{
25template<int d, class T>
26class gsPoint : public gsVector<T, d>
27{
28public:
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
43private:
44 size_t m_vertexIndex;
45}; // class gsPoint
46
47} // namespace gismo
A Point in T^d, with an index number.
Definition gsPoint.h:27
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition gsVector.h:37
The G+Smo namespace, containing all definitions for the library.