CArcPointsCalculator.h
Go to the documentation of this file.
1 #pragma once
2 
3 // STL includes
4 #include <vector>
5 
6 
7 namespace i2d
8 {
9 
10 
16 {
17 public:
18  typedef std::vector<int> Coordinates;
19 
34  static bool GetArcPoints(
35  int centerX,
36  int centerY,
37  int radius,
38  int startAngle,
39  int endAngle,
40  Coordinates& xPoints,
41  Coordinates& yPoints);
42 };
43 
44 
45 } // namespace i2d
46 
47 
static bool GetArcPoints(int centerX, int centerY, int radius, int startAngle, int endAngle, Coordinates &xPoints, Coordinates &yPoints)
Fast implementation of the arc points calculation.
std::vector< int > Coordinates
Calculates points on the given arc using Bresenham's integer algorithm.

© 2007-2017 Witold Gantzke and Kirill Lepskiy