/
polytech_kolomna
/
aipackaging_math
Обзор
Документация
Войти
/
polytech_kolomna
/
aipackaging_math
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
intersections
include/point2d.h
27 строк
578 B
Olegh
lower case
28 окт 2025, 21:08
28 окт 2025, 21:08
037a99f
Код
Авторство
О чём код?
#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