/geometric_shapes_area_perimeter

Calculates perimeter and area of geometric shapes given vector of 2-dimensional points

Primary LanguageC++MIT LicenseMIT

MIT License LinkedIn

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact
  6. Acknowledgments

About The Project

Points represent 2-dimensional points. All geometric shapes are vectors of Points internally.

You can instantiate the following geometric shapes:

  • polygonal chain
  • closed polygonal chain
  • polygon
  • triangle
  • trapezoid
  • regular polygon

You can calculate the perimeter and area of the shapes.

(back to top)

Getting Started

To calculate the perimeter and area of geometric shapes, follow the simple steps below.

Installation

  1. Clone the repo git clone https://github.com/MariaMozgunova/geometric_shapes_area_perimeter.git
  2. Include program into your code #include "geometric_shapes_area_perimeter/geometry.cpp"

(back to top)

Usage

See main_geometry.cpp for examples of usage.

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Maria Mozgunova - Twitter - @MariaMozgunova - mariiamozgunova@gmail.com

Project Link: https://github.com/MariaMozgunova/geometric_shapes_area_perimeter

(back to top)

Acknowledgments

(back to top)