GetAngles Method
Syntax
CWIMAQVision.GetAngles XCoordinates, YCoordinates, AnglesInDegrees, AnglesInRadians [, Vertex]
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
>Obsolete—Use GetAngles2 instead. Computes the angles formed by sets of four points in an image or between sets of two points and a common vertex.
Remarks
XCoordinates and YCoordinates represent an array of points. If you do not specify the vertex point, the method considers four points at a time to compute the angle. If you specify a vertex, the method computes the angle made by two consecutive points in the array and the vertex.
Parameters
XCoordinates As Variant
An array consisting of the x-coordinates of pixels for angle computation.
YCoordinates As Variant
An array consisting of the y-coordinates of pixels for angle computation.
AnglesInDegrees As Variant
On return, an array containing the computed angles in degrees.
AnglesInRadians As Variant
On return, an array containing the computed angles in radians.
Vertex As Variant
[Optional] A two-element array that specifies the coordinate of the vertex. The first element is the x coordinate, and the second element is the y coordinate. A computation without a vertex is performed if this input is not specified.