Maptitude GISDK Help

Azimuth()

Summary

Computes the azimuth (heading) for a line between two points.

 

Syntax

azim = Azimuth(coord c1, coord c2)

 

Argument

Contents

c1

First coordinate

c2

Second coordinate

 

Returns

A real number indicating the azimuth in degrees, from 0 (due north) to 360 (measured clockwise).

 

Example

loc1 = Coord(-120000000, 45000000)

loc2 = Coord(-95000000, 37500000)

azim = Azimuth(loc1, loc2)

ShowMessage("The azimuth is " + String(azim))

 

See Also

Function

Summary

GetDistance()

Computes the great circle distance between two coordinates

Heading()

Returns the azimuth of the AB or BA direction of a line

 

 

©2025 Caliper Corporation www.caliper.com