/*
 * Vertex.cpp
 *
 *  Created on: 18.11.2008
 *      Author: sep
 */

#include "Vertex.h"
#include <iostream>

Vertex::Vertex(double x,double  yp):x(x),y(yp) {
	//this->x=x;
	//(*this).y=y;
}

double Vertex::arithMiddle(){
	return (x+this->y)/2;
}

Vertex::~Vertex() {
	std::cout<<"jetzt loesch ich dich ("
	<<x<<","<<y<<")"<<std::endl;
}

std::string Vertex::toString(){
	std::string result ="(";
	result=result+x+","+y+")";
	return result;
}
