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