#ifndef LINESEGMENT_HPP
#define LINESEGMENT_HPP

#include "point.hpp"

class LineSegment{
private:
	Point sourse;
	Point target;

	static int count; // it counts how many linesegments have been created and returns the count
	static int computationCount; //counts how may times a method that performs a computation, has been called
public:
	LineSegment();
	LineSegment(Point s, Point t);

	Point getSource() const;
	Point getTarget() const;

	void setSource(Point s);
	void setTarget(Point t);

	void input();
	void output() const;
	
	double length() const;

	static int getCount();
	static int getComputationCount();


};


#endif
