CogRectangleAffine SetOriginLengthsRotationSkew Method Cognex VisionPro 9.8
Initialize this affine rectangle from its origin point, SideXLength, SideYLength, Rotation and Skew. All angles are in radians.

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

public void SetOriginLengthsRotationSkew(
	double originX,
	double originY,
	double sideXLength,
	double sideYLength,
	double rotation,
	double skew
)
Events

Event TypeReason
CogRectangleAffine Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    sideXLength is <= 0 or sideYLength is <= 0.

    Remarks

    Sets this affine rectangle from the specified origin point (Po), side x length, side y length, rotation angle, and skew angle as shown in the following illustration:

    Note: To prevent degenerate affine rectangles, setting skew to within +/- 0.002 of +/-(π/2) causes the value to be set to either (-π/2 - 0.002) or (π/2 + 0.002) for negative and positive values of skew, respectively.

    See Also