Validate and normalize a navigational bearing
This application validates a given bearing, an angle, in degrees, clockwise from north.
Here we mean the Absolute Bearing, the angle, in degrees, clockwise from north.
This application demonstrates the Bearing class an its functions validates a given Absolute Bearing, the angle, in degrees, clockwise from north. decimal bearing. A bearing, or navigational bearing, describes a direction or, the angular measurement, in a spherical coordinate system. Bearings are used in many operations in KML Workbench, thus the need for functions that wrap and validate user input. Similar to latitude and longitude, the Bearing::isValid() function first calls sanitizeGeo() for security. Here, I call Bearing::wrap() to convert the given input to a floating point decimal between 0 and 360.