RectangleAffine SetCenterLengthsRotationSkew Method Cognex VisionPro 9.24

Initialize this affine rectangle from its center point, SideXLength, SideYLength, Rotation (in radians) and Skew.

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

public void SetCenterLengthsRotationSkew(
	double centerX,
	double centerY,
	double sideXLength,
	double sideYLength,
	double rotation,
	double skew
)
Exceptions

ExceptionCondition
ArgumentExceptionsideXLength is <= 0 or sideYLength is <= 0.
Remarks

Changed Raised when the value of this property changes.

Remarks

Sets this affine rectangle from the specified center point, side x length, side y length, rotation angle, and skew angle.

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