ACF
$AcfVersion:0$
Acf
Include
i2d
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
8
namespace
i2d
9
{
10
11
16
class
CArcPointsCalculator
17
{
18
public
:
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
i2d::CArcPointsCalculator
Calculates points on the given arc using Bresenham's integer algorithm.
Definition
CArcPointsCalculator.h:17
i2d::CArcPointsCalculator::Coordinates
std::vector< int > Coordinates
Definition
CArcPointsCalculator.h:19
i2d::CArcPointsCalculator::GetArcPoints
static bool GetArcPoints(int centerX, int centerY, int radius, int startAngle, int endAngle, Coordinates &xPoints, Coordinates &yPoints)
Fast implementation of the arc points calculation.
i2d
Contains the 2D objects.
Definition
CAffine2d.h:11
Generated by
1.9.8