My Project
vertex.h
Go to the documentation of this file.
1 
12 #pragma once
13 
15 #include "baseobject.h"
16 #include "../geometry\gmatrix.h"
17 
24 class Vertex: public BaseObject
25 {
26 public:
30  Vertex();
31 
38  Vertex(double X, double Y, double Z);
39 
44  Vertex(const Vertex& other);
45 
50  Vertex(Vertex&& other);
51 
55  ~Vertex();
56 
61  Vertex& operator=(Vertex other);
62 
67  GVector vector();
68 
74  Vertex operator*(GMatrix matrix);
75 
80  virtual void modificate(Modification* modification, Vertex* center) override;
81 
88  virtual bool isVertex() override { return true; }
89 
90  double X;
91  double Y;
92  double Z;
93 };
Vertex operator*(GMatrix matrix)
Definition: vertex.cpp:59
double X
Definition: vertex.h:90
Base modification object class.
Define vertex consisting 3 double coordinates.
Definition: vertex.h:24
virtual void modificate(Modification *modification, Vertex *center) override
Definition: vertex.cpp:54
virtual bool isVertex() override
Definition: vertex.h:88
Define geometric vector.
Definition: gvector.h:26
GVector vector()
Definition: vertex.cpp:48
Vertex & operator=(Vertex other)
Definition: vertex.cpp:40
Base object. Virtual class. No realisation.
Definition: baseobject.h:23
double Z
Definition: vertex.h:92
double Y
Definition: vertex.h:91
Vertex()
Definition: vertex.cpp:5
Base object.
Define geometric matrix.
Definition: gmatrix.h:24
~Vertex()
Definition: vertex.cpp:33
Base modification object class.
Definition: modification.h:26