VectorToDeg- From a vector returns the angle in degrees
Function that from a vector returns the angle expressed in degrees.
- VectorToDeg(X1,Y1,X2,Y2): float
Parameters:
- (int) X1: X coordinate of the vector's starting point;
- (int) Y1: the Y coordinate of the vector's starting point;
- (int) X2: X coordinate of the vector's ending point;
- (int) Y2: the Y coordinate of the vector's ending point.
Description:
Use the VectorToDeg function to derive the angle expressed in degrees of a vector. The vector is given by two points, two pairs of coordinates that indicate the starting and ending point of the vector.