imaqMakeRotatedRectFromRect
Usage
RotatedRect imaqMakeRotatedRectFromRect(Rect rect);
Purpose
Returns a RotatedRect structure equivalent in size and location to the rectangle you specify. The angle of the resulting rotated rectangle is always zero. The RotatedRect structure defines the location, size, and rotation of a rectangle. You can embed a call to imaqMakeRotatedRect() in calls to other NI Vision functions that require RotatedRect structures as input parameters, thereby eliminating the need to declare a RotatedRect variable.
Parameters
Name
|
Type
|
Description
|
---|---|---|
rect | Rect | The rectangle the function converts into a rotated rectangle. |
Return Value
Type |
Description |
---|---|
RotatedRect | This function returns a RotatedRect equivalent in size and location to the rectangle you specify. |