Public Types | Static Public Member Functions | List of all members
i2d::CArcPointsCalculator Class Reference

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. More...
 

Detailed Description

Calculates points on the given arc using Bresenham's integer algorithm.

No antialiasing is used.

Definition at line 15 of file CArcPointsCalculator.h.

Member Typedef Documentation

typedef std::vector<int> i2d::CArcPointsCalculator::Coordinates

Definition at line 18 of file CArcPointsCalculator.h.

Member Function Documentation

static bool i2d::CArcPointsCalculator::GetArcPoints ( int  centerX,
int  centerY,
int  radius,
int  startAngle,
int  endAngle,
Coordinates xPoints,
Coordinates yPoints 
)
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


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy