/
polytech_kolomna
/
aipackaging_math
Обзор
Документация
Войти
/
polytech_kolomna
/
aipackaging_math
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
intersections
include/circle2d.h
31 строка
762 B
Olegh
lower case
28 окт 2025, 21:08
28 окт 2025, 21:08
037a99f
Код
Авторство
О чём код?
#ifndef CIRCLE2D_H #define CIRCLE2D_H #include <icurve2d.h> #include <point2d.h> // Окружность в 2D пространстве class AIPACKAGING_MATHLIB_API Circle2D : public ICurve2D { public: Circle2D(const Point2D& center, double radius); // Возвращает точку на окружности Point2D getPoint(double tRadian) const override; void move(const Vector2D& offset) override; void scale(double scaleX, double scaleY) override; void rotate(double radian) override; // Выполняет трансформацию окружности void transform(const Matrix3& matrix) override; bool operator==(const Circle2D& other); bool operator!=(const Circle2D& other); private: Point2D center_; double radius_; }; #endif