Method Ellipse2Poly
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Ellipse2Poly(Point, Size, int, int, int, int)
Approximates an elliptic arc with a polyline. The function ellipse2Poly computes the vertices of a polyline that approximates the specified elliptic arc. It is used by cv::ellipse.
public static Point[] Ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta)
Parameters
centerPointCenter of the arc.
axesSizeHalf of the size of the ellipse main axes. See the ellipse for details.
angleintRotation angle of the ellipse in degrees. See the ellipse for details.
arcStartintStarting angle of the elliptic arc in degrees.
arcEndintEnding angle of the elliptic arc in degrees.
deltaintAngle between the subsequent polyline vertices. It defines the approximation
Returns
- Point[]
Output vector of polyline vertices.
Ellipse2Poly(Point2d, Size2d, int, int, int, int)
Approximates an elliptic arc with a polyline. The function ellipse2Poly computes the vertices of a polyline that approximates the specified elliptic arc. It is used by cv::ellipse.
public static Point2d[] Ellipse2Poly(Point2d center, Size2d axes, int angle, int arcStart, int arcEnd, int delta)
Parameters
centerPoint2dCenter of the arc.
axesSize2dHalf of the size of the ellipse main axes. See the ellipse for details.
angleintRotation angle of the ellipse in degrees. See the ellipse for details.
arcStartintStarting angle of the elliptic arc in degrees.
arcEndintEnding angle of the elliptic arc in degrees.
deltaintAngle between the subsequent polyline vertices. It defines the approximation
Returns
- Point2d[]
Output vector of polyline vertices.