https://github.com/vovandreevik/point-and-triangle
This C++ program is designed to work with points and triangles in a simple object-oriented manner. It includes classes for Points and Triangles and various functions to manipulate and analyze them.
https://github.com/vovandreevik/point-and-triangle
oop oop-principles oops-in-cpp
Last synced: 10 months ago
JSON representation
This C++ program is designed to work with points and triangles in a simple object-oriented manner. It includes classes for Points and Triangles and various functions to manipulate and analyze them.
- Host: GitHub
- URL: https://github.com/vovandreevik/point-and-triangle
- Owner: vovandreevik
- Created: 2022-12-01T22:32:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T18:37:53.000Z (over 2 years ago)
- Last Synced: 2025-07-27T03:52:44.079Z (11 months ago)
- Topics: oop, oop-principles, oops-in-cpp
- Language: C++
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Point-and-Triangle
This C++ program is designed to work with points and triangles in a simple object-oriented manner. It includes classes for Points and Triangles and various functions to manipulate and analyze them.
The program first takes user input for coordinates of points and calculates the point closest to the origin.
It then allows users to input another point to test various functions, such as distance calculation and movement.
The program also works with Triangle objects, allowing users to create triangles, move them, calculate their perimeter and square, and check for equality.