All pastes #335559 Raw Edit

lenght

public cpp v1 · immutable
·published 2007-02-01 12:35 UTC
rendered paste body
class math {public:	double Distance(vector<Vertex> v1);};double math::Distance(vector<Vertex> v1) {	float d1,d2;	d1 = v1[0].x - v1[1].x;	d2 = v1[0].x - v1[1].y;    	return abs(sqrt(d1*d1 + d2*d2));}