|
My Project
|
Define vertex consisting 3 double coordinates. More...
#include "model/vertex.h"


Public Member Functions | |
| Vertex () | |
| Vertex (double X, double Y, double Z) | |
| Vertex (const Vertex &other) | |
| Vertex (Vertex &&other) | |
| ~Vertex () | |
| Vertex & | operator= (Vertex other) |
| GVector | vector () |
| Vertex | operator* (GMatrix matrix) |
| virtual void | modificate (Modification *modification, Vertex *center) override |
| virtual bool | isVertex () override |
Public Attributes | |
| double | X |
| double | Y |
| double | Z |
Public Attributes inherited from BaseObject | |
| int | ID |
Define vertex consisting 3 double coordinates.
Provide interface for vertex coordinates
| Vertex::Vertex | ( | ) |
Emty constructor. Fills coordinates with zero values.
Definition at line 5 of file vertex.cpp.
| Vertex::Vertex | ( | double | X, |
| double | Y, | ||
| double | Z | ||
| ) |
Constructor fills coordinates with user`s values
| [in] | X | X coordinate of vertex |
| [in] | Y | Y coordinate of vertex |
| [in] | Z | Z coordinate of vertex |
Definition at line 12 of file vertex.cpp.
| Vertex::Vertex | ( | const Vertex & | other | ) |
Constructor copy
| [in] | other | Vertex object to copy |
Definition at line 19 of file vertex.cpp.
| Vertex::Vertex | ( | Vertex && | other | ) |
Constructor transfer
| [in] | other | Vertex object to transfer |
Definition at line 26 of file vertex.cpp.
| Vertex::~Vertex | ( | ) |
Destructor fills coordinates with zero values
Definition at line 33 of file vertex.cpp.
|
inlineoverridevirtual |
In modification methods we need to know what kind of object we use: vertex or normal so here we know
Reimplemented from BaseObject.
|
overridevirtual |
Modificate coordinates (rotate/zoom etc)
| [in] | modification | Modification object |
Implements BaseObject.
Definition at line 54 of file vertex.cpp.

Multiply this vertex by matrix
| [in] | matrix | Matrix to multiply |
Definition at line 59 of file vertex.cpp.
| GVector Vertex::vector | ( | ) |
1.8.12