-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVertice.cpp
More file actions
30 lines (29 loc) · 936 Bytes
/
Vertice.cpp
File metadata and controls
30 lines (29 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//---------------------------------------------------------------------------
#pragma hdrstop
#include "Vertice.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
// Lifecycle
//---------------------------------------------------------------------------
Vertice::Vertice(const double x, const double y, const double z, const UnicodeString& _tag)
: tag(_tag)
{
coords = new Matrix(1, 4);
setX(x);
setY(y);
setZ(z);
setAug(1);
}
//---------------------------------------------------------------------------
Vertice::Vertice(const Vertice& src)
: tag(src.tag)
{
coords = new Matrix(*src.coords);
}
//---------------------------------------------------------------------------
Vertice::~Vertice()
{
delete coords;
}
//---------------------------------------------------------------------------