Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / ShapeCollection / Triangle.h
blob: 39434e8b2f634e78148725f8e0354cc742129a3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "Shape.h"

class Triangle : public Shape
{

public:
	Triangle(int x1, int y1, int x2, int y2, int x3, int y3);
	double  getArea() const override;
	double getPer() const override;
	bool isPointIn(int x, int y) const override;
	Shape* clone() const override;

};