Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include<iostream>
- using namespace std;
- struct Circle
- {
- int x;
- int y;
- int radius;
- };
- struct BoundingBox
- {
- int bottomLeftAngleX;
- int bottomLeftAngleY;
- int topRightAngleX;
- int topRightAngleY;
- };
- struct Coordinate
- {
- int x;
- int y;
- };
- int main()
- {
- return 0;
- }
- Circle circleCoordinates(int x, int y, int radius) //creates circle
- {
- struct Circle circle;
- circle.x = x;
- circle.y = y;
- circle.radius = radius;
- return circle;
- }
- BoundingBox circleBoundingBox(Circle circle) //creates bounding box with parameter a circle
- {
- BoundingBox boundingBox;
- boundingBox.bottomLeftAngleX = circle.x - circle.radius;
- boundingBox.bottomLeftAngleY = circle.y - circle.radius;
- boundingBox.topRightAngleX = circle.x + circle.radius;
- boundingBox.topRightAngleY = circle.y + circle.radius;
- return boundingBox;
- }
- int extractCircleBoundingBox()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment