Function swri_transform_util::GetHeading

Function Documentation

double swri_transform_util::GetHeading(double src_x, double src_y, double dst_x, double dst_y)

Calculates the heading in degrees from a source and destination point in a north-oriented (+y = north, +x = east), ortho-rectified coordinate system. The heading is positive clock-wise with 0 degrees at north.

Parameters:
  • src_x[in] The source X coordinate.

  • src_y[in] The source Y coordinate.

  • dst_x[in] The destination X coordinate.

  • dst_y[in] The destination Y coordinate.

Returns:

The heading in degrees along the vector between the source and destination points.