CogRectangleAffine SetOriginCornerXCornerY Method Cognex VisionPro
Initialize this affine rectangle from the three corner points: Origin, CornerX, and CornerY.

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

public void SetOriginCornerXCornerY(
	double originX,
	double originY,
	double cornerXX,
	double cornerXY,
	double cornerYX,
	double cornerYY
)

Parameters

originX
Type: System Double

The x-coordinate of corner point origin (Po).

originY
Type: System Double

The y-coordinate of corner point origin (Po).

cornerXX
Type: System Double

The x-coordinate of corner point x (Px).

cornerXY
Type: System Double

The y-coordinate of corner point x (Px).

cornerYX
Type: System Double

The x-coordinate of corner point y (Py).

cornerYY
Type: System Double

The y-coordinate of corner point y (Py).

Events

Event TypeReason
CogRectangleAffine Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    CogShapeNotRectangleException

    The three points are not unique.

    Remarks

    Sets this affine rectangle from the specified origin point (Po), corner point x (Px), and corner point y (Py) as shown in the following illustration:

    See Also