CircularAnnulusSection SetCornerWidthHeightRotationCurve Method Cognex VisionPro 9.21

Sets corner, width, height, rotation and curvature of the circular annulus section.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
Syntax

public void SetCornerWidthHeightRotationCurve(
	double cornerX,
	double cornerY,
	double width,
	double height,
	double rotation,
	double curve
)

Parameters

cornerX
Type: System Double
The x-coordinate of the origin corner of this circular annulus section.
cornerY
Type: System Double
width
Type: System Double
The width of this circular annulus section. It is the length of the arc that lies halfway between the inner and outer arcs. It is always positive.
height
Type: System Double
The height of this circular annulus section. It is the signed distance between the inner and outer arcs. If the curve is positive, the height is positive when the vector from the origin corner to the other arc points away from the circle center. If the curve is negative, the height is positive when the vector points towards the circle center.
rotation
Type: System Double
The rotation (in radians from the x-axis towards the y-axis) of the circular annulus section. This is the angle of the vector from the circle center to the origin corner. Equivalent to angleStart.
curve
Type: System Double
The angular span (in radians from the x-axis towards the y-axis) of the circular annulus section. It measures the angle (about the circle center) traversed by the circular arc as you move from the origin corner to the other end of the arc. This signed angle is equivalent to angleSpan.
Exceptions

ExceptionCondition
ArgumentExceptionwidth <= 0.0
ArgumentExceptionheight == 0.0
Remarks

Changed Raised when the shape changes. The following state flags may be affected:

Remarks

Sets CenterX , CenterY , Radius , AngleStart , AngleSpan and RadialScale of the circular annulus section.

See Also