00 /*
01  * tripple.cpp
02  *
03  *      Author: Kurt Nørmark/Simonas Saltenis
04  */
05 
06 #include <cmath>
07 #include <iostream>
08 #include "tripple.h"
09 
10 Geometrical::Tripple::Tripple(Point p) : x{int(p.getx())}, y{int(p.gety())}, z{0} {};
11 
12 int Geometrical::Tripple::getx() const
13 {
14     return x;
15 }
16 
17 int Geometrical::Tripple::gety() const
18 {
19     return y;
20 }
21 
22 int Geometrical::Tripple::getz() const
23 {
24     return z;
25 }
26 
27 std::ostream& Geometrical::operator<<(std::ostream& s, const Geometrical::Tripple& tr)
28 {
29   return s << "[" << tr.getx() << "," << tr.gety() << "," << tr.getz() << "]";
30 }
31 
32 
33