CogEllipticalAnnulusSection AngleSpan Property Cognex VisionPro
Returns/sets the angular extent (in radians) and direction of the annulus section. For example, a value of Pi specifies a section that is one half of the full annulus. A value of -Pi specifies the other half.

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

public double AngleSpan { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogEllipticalAnnulusSection Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    Value is zero.

    Remarks

    Sets or gets the angle span of the start arc of this elliptical annulus section in radians. The angle can be any positive or negative value, but not exactly 0; the sign determines the direction of the arc.

    If the absolute value of the angle span is greater than 2π, the arc wraps around on itself. It is not normalized to the range −2π to 2π

    For example, an AngleSpan of +π is an arc that describes half of a full ellipse, and a span of −π describes the other half in the opposite direction.

    To simply reverse the direction of an arc, you can use the following:

    AngleStart = AngleStart + AngleSpan AngleSpan = −AngleSpan

    Default Value: π/2

    See Also