aboutsummaryrefslogtreecommitdiff
path: root/oop1w6/Punt.cpp
blob: 707047e0bf18de1143ca0b380536f44771d5159a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "Punt.h"

Punt::Punt() {
	this->x = this->y = this->z = 0;
}

Punt::Punt(int x, int y, int z) {
	this->x = x;
	this->y = y;
	this->z = z;
}

std::ostream& operator << ( std::ostream& output, const Punt& punt ) {
	output << "(" << punt.x << "," << punt.y << "," << punt.z << ")";
	return output;
}