ACF $AcfVersion:0$
CArcPointsCalculator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4// STL includes
5#include <vector>
6
7
8namespace i2d
9{
10
11
17{
18public:
19 typedef std::vector<int> Coordinates;
20
35 static bool GetArcPoints(
36 int centerX,
37 int centerY,
38 int radius,
39 int startAngle,
40 int endAngle,
41 Coordinates& xPoints,
42 Coordinates& yPoints);
43};
44
45
46} // namespace i2d
47
48
Calculates points on the given arc using Bresenham's integer algorithm.
static bool GetArcPoints(int centerX, int centerY, int radius, int startAngle, int endAngle, Coordinates &xPoints, Coordinates &yPoints)
Fast implementation of the arc points calculation.
Contains the 2D objects.
Definition CAffine2d.h:11