/
polytech_kolomna
/
polygon2d
Обзор
Документация
Войти
/
polytech_kolomna
/
polygon2d
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
math
AIPackaging_Math/include/Point2D.h
27 строк
578 B
ecomaks2017
added mathlib folder
15 окт 2025, 13:57
15 окт 2025, 13:57
18b6bb3
Код
Авторство
О чём код?
#ifndef POINT2D_H #define POINT2D_H #include <ostream> #include <AIPackagingMathExport.h> struct Vector2D; // Точка в 2D пространстве struct AIPACKAGING_MATHLIB_API Point2D { Vector2D operator-(const Point2D& other) const; Point2D operator+(const Vector2D& other) const; Point2D& operator+=(const Vector2D& other); bool operator==(const Point2D& other) const; bool operator!=(const Point2D& other) const; AIPACKAGING_MATHLIB_API friend std::ostream& operator<<(std::ostream& out, const Point2D& other); public: double x{}; double y{}; }; #endif