// Line.cpp: implementation of the CLine class. // ////////////////////////////////////////////////////////////////////// #include "point.h" #include "line.h" #include ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// // do dr. Dan Ophir // float CLine::CLine() CLine::CLine() { } CLine::~CLine() { } float CLine::length() { // do Dr. Dan Ophir // double len(l1,l2); //l1.P1=p1; //l1.P2=p2; double len; len=sqrt( pow((P1.x-P2.x),2) + pow((P1.y-P2.y),2)); return (float)len; }