Creates a new circular arc (copying the specified parameters) defined by this circular annulus section at the given radial fraction between the start and end arcs. For example, specify 0 for the start arc, 0.5 for the center arc, and 1 for the end arc.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Parameters
- radialFraction
- Type: System Double
Specifies the arc in relation to the section. Specify zero for the start arc, 0.5 for the center arc, and 1.0 for the end arc, or other values for intermediate arcs.
- copyFlags
- Type: Cognex.Vision CopyShapeConstants
Specify which attributes of the shape to copy to the new shape.
Return Value
Type: CircularArcThe new circular arc.
| Exception | Condition |
|---|---|
| ArgumentException | (1 + radialFraction *( RadialScale − 1)) <= 0.0 |
Creates a new CircularArc based on this circular annulus section as defined by the radial fraction between the start and end arcs. Specify zero for the start arc, 0.5 for the center arc, and 1.0 for the end arc. copyFlags specifies which aspects of the arc are copied to the new shape. Although you can specify radialFraction values less than zero or greater than 1, this function will return an error if the resulting radius would be less than or equal to zero.