Sets CenterX, CenterY, RadiusX, RadiusY, Rotation, AngleStart, and AngleSpan of this elliptical arc. All angles are in radians.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax
Parameters
- centerX
- Type: System Double
The x-coordinate of the center of the arc.
- centerY
- Type: System Double
The y-coordinate of the center of the arc.
- radiusX
- Type: System Double
The distance from the center of the underlying ellipse to its boundary along the x-axis.
- radiusY
- Type: System Double
The distance from the center of the underlying ellipse to its boundary along the y-axis.
- rotation
- Type: System Double
The Rotation of the arc.
- angleStart
- Type: System Double
The AngleStart of the arc.
- angleSpan
- Type: System Double
The AngleSpan of the arc. (The default value for this parameter is actually π/2.)
Events
| Event Type | Reason |
|---|---|
| CogEllipticalArc Changed | Fires when the shape changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | radiusX <= 0.0 or radiusY <= 0.0 |
| ArgumentException | angleSpan = 0.0 |
Remarks
Sets CenterX, CenterY, RadiusX, RadiusY, Rotation, AngleStart, and AngleSpan of this elliptical arc.
See Also