Field-Map Scripting

4.1.14.8 XYtoPolar

XYtoPolar function


Prototype:

function XYtoPolar (const X0, Y0, X, Y : double; var Azimuth_deg, Distance_m : double) : boolean;

Description:

Converts coordinates of point from Carthesian system into polar system.

Syntax:

variable := XYtoPolar (X0, Y0, X, Y, Azimuth, Distance);


Part

Description


variable

A variable declared as boolean


X0, Y0

Coordinates of system origin


X, Y

Coordinates of point in Carthesian system


Azimuth

Azimuth of point from the system origin


Distance

Distance of point from the system origin

Return value:

True/false


Note: This function is available since version X7.




See also:                

ExtendLine; CombinePolygons; IntersectPolygons; FindLineIntersects; Distance; PolarToXY; Polar2XY; XYtoPolar; XY2polar