-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVertex.hpp
More file actions
34 lines (30 loc) · 721 Bytes
/
Copy pathVertex.hpp
File metadata and controls
34 lines (30 loc) · 721 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
31
32
33
34
#ifndef VERTEX_HPP
# define VERTEX_HPP
# include <string>
# include <sstream>
# include <iostream>
class Vertex
{
public:
Vertex( void );
Vertex( double x, double y, double z);
Vertex(Vertex const & src);
~Vertex( void );
double getX() const;
double getY() const;
double getZ() const;
void setX(double x);
void setY(double y);
void setZ(double z);
Vertex & operator=(Vertex const & rhs);
Vertex operator+(Vertex const & rhs);
Vertex & operator+=(Vertex const & rhs);
Vertex operator*(double const rhs);
std::string toString() const;
private:
double _x;
double _y;
double _z;
};
std::ostream & operator<<(std::ostream & o, Vertex const & rhs);
#endif /* VERTEX_HPP */