Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Parameters
- startX
- Type: System Double
X-coordinate of the start point of the arc.
- startY
- Type: System Double
Y-coordinate of the start point of the arc.
- midX
- Type: System Double
X-coordinate of the midpoint of the arc.
- midY
- Type: System Double
Y-coordinate of the midpoint of the arc.
- endX
- Type: System Double
X-coordinate of the end point of the arc.
- endY
- Type: System Double
Y-coordinate of the end point of the arc.
- ellipseFraction
- Type: System Double
The fraction of the ellipse that passes through the start, mid-, and end points. This value must be > 0 and < 1.
Implements
ICogGeneralContourEllipticalArcSegmentIterator SetStartMidpointEndEllipseFraction(Double, Double, Double, Double, Double, Double, Double)| Event Type | Reason |
|---|---|
| CogGeneralContourSegmentIteratorChanged | Fires when the segment changes. The following state flags may be affected: |
| Exception | Condition |
|---|---|
| CogShapeBadContourSegTypeException | The SegmentType is not EllipticalArc |
| CogIteratorInvalidIteratorException | This iterator is not valid. |
| ArgumentException | The ellipse fraction is <= 0 or >= 1. |
| CogShapeDegenerateEllipticalArcSegException | Points on the elliptical arc segment are colinear. |
Sets the start point, midpoint, end point, and ellipse fraction of this elliptical arc.
Note: This method also changes the geometry of any connected segments because it changes the start and end of this segment.