#ifndef QUADRILATERAL_H_INCLUDED
#define QUADRILATERAL_H_INCLUDED
#include "point.h"
class Quadrilateral:public Point
{
protected:
Point a;
Point b;
Point c;
Point d;
void validate();
public:
Quadrilateral();
Quadrilateral(Point &p1, Point &p2, Point &p3, Point &p4);
void SetA(Point &p1);
void SetB(Point &p2);
void SetC(Point &p3);
void SetD(Point &p4);
void SetAll(Point &p1, Point &p2, Point &p3, Point &p4);
Point GetA(void) const;
Point GetB(void) const;
Point GetC(void) const;
Point GetD(void) const;
double Perimeter();
double Area();
void Print();
};
#endif
I2lmbmRlZiBRVUFEUklMQVRFUkFMX0hfSU5DTFVERUQKI2RlZmluZSBRVUFEUklMQVRFUkFMX0hfSU5DTFVERUQKI2luY2x1ZGUgInBvaW50LmgiCgpjbGFzcyBRdWFkcmlsYXRlcmFsOnB1YmxpYyBQb2ludAp7Cglwcm90ZWN0ZWQ6CgkJUG9pbnQgYTsKCQlQb2ludCBiOwoJCVBvaW50IGM7CgkJUG9pbnQgZDsKCQl2b2lkIHZhbGlkYXRlKCk7CglwdWJsaWM6CgkJUXVhZHJpbGF0ZXJhbCgpOwoJCVF1YWRyaWxhdGVyYWwoUG9pbnQgJnAxLCBQb2ludCAmcDIsIFBvaW50ICZwMywgUG9pbnQgJnA0KTsKCQl2b2lkIFNldEEoUG9pbnQgJnAxKTsKCQl2b2lkIFNldEIoUG9pbnQgJnAyKTsKCQl2b2lkIFNldEMoUG9pbnQgJnAzKTsKCQl2b2lkIFNldEQoUG9pbnQgJnA0KTsKCQl2b2lkIFNldEFsbChQb2ludCAmcDEsIFBvaW50ICZwMiwgUG9pbnQgJnAzLCBQb2ludCAmcDQpOwoJCVBvaW50IEdldEEodm9pZCkgY29uc3Q7CgkJUG9pbnQgR2V0Qih2b2lkKSBjb25zdDsKCQlQb2ludCBHZXRDKHZvaWQpIGNvbnN0OwoJCVBvaW50IEdldEQodm9pZCkgY29uc3Q7CgkJZG91YmxlIFBlcmltZXRlcigpOwoJCWRvdWJsZSBBcmVhKCk7CgkJdm9pZCBQcmludCgpOwp9OwojZW5kaWYKCQkKCg==