cpp_drawing/math/transforms.hpp
2025-09-26 11:00:11 +02:00

15 lines
328 B
C++

#pragma once
#include "vector.hpp"
namespace math
{
constexpr float PI = 3.14159265358979323846f;
Vector RotatePoint(const Vector& center, float angle, const Vector& p);
Vector ScalePoint(const Vector& center, float factor, const Vector& p);
float RotateAngle(float originalAngle, float rotationAngle);
} // namespace math