Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / ShapeCollection / main.cpp
blob: 4b6e78443959f8e706ee4df4d2b6951199996ae2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include "ShapeCollection.h"
using namespace std;

int main()
{
	ShapeCollection s;

	s.addCircle(3, 4, 1);
	s.addTriangle(1, 2, 9, 4, 0, 0);
	s.addRectangle(1, 1, 9, 9);

	std::cout << s.getIfPointInShapeByIndex(0, 3, 4.5)<< std::endl;
	std::cout << s.getAreaOfFigureByIndex(2) << std::endl;

	
	
}