normaliseOrientation()

Information

Implementation version: beta 1.07

Description

A method that normalizes any entered value between -10,000 and 10,000 into an orientation value between 0 and 360 degrees, clockwise for positive values, and counterclockwise for negative ones: a value of 390 will be transformed into 30, and a value of -390 will be transformed into 330.

Invocation

normaliseOrientation(
	headingValue
)

Input parameters

headingValue

The numerical value to normalize.

Use examples

Normalize a series of values:

normaliseOrientation(
	'390'
)