|
ACF $AcfVersion:0$
|
Calculates points on the given arc using Bresenham's integer algorithm. More...
#include <CArcPointsCalculator.h>
Public Types | |
| typedef std::vector< int > | Coordinates |
Static Public Member Functions | |
| static bool | GetArcPoints (int centerX, int centerY, int radius, int startAngle, int endAngle, Coordinates &xPoints, Coordinates &yPoints) |
| Fast implementation of the arc points calculation. | |
Calculates points on the given arc using Bresenham's integer algorithm.
No antialiasing is used.
Definition at line 16 of file CArcPointsCalculator.h.
| typedef std::vector<int> i2d::CArcPointsCalculator::Coordinates |
Definition at line 19 of file CArcPointsCalculator.h.
|
static |
Fast implementation of the arc points calculation.
Inputs: centerX, centerY: arc center in pixel radius: arc radius in pixel startAngle, endAngle: start and end angle of the arc in grad
Outputs: xPoints, yPoints: vectors of the calculated points coordinates
Returns: true if arc points have been calculated, otherwise false