/* * point3d.cpp * * Created on: 07.03.2013 * Author: trifon */ #include using namespace std; #include "point3d.h" Point3D::Point3D(Point2D _p, double _z) { p = _p; z = _z; } double Point3D::getZ() const { return z; } Point2D Point3D::getP() const { return p; } void Point3D::print() const { cout << '('; p.print(); cout << ',' << z << ')'; }