CogEllipticalArc SetCenterRadiusXYRotationAngleStartAngleSpan Method Cognex VisionPro 9.5
Sets CenterX, CenterY, RadiusX, RadiusY, Rotation, AngleStart, and AngleSpan of this elliptical arc. All angles are in radians.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public void SetCenterRadiusXYRotationAngleStartAngleSpan(
	double centerX,
	double centerY,
	double radiusX,
	double radiusY,
	double rotation,
	double angleStart,
	double angleSpan
)

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 TypeReason
CogEllipticalArc Changed

Fires when the shape changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    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