Heading¶
Object that refers to the directional heading to of a location or direction.
Forms¶
heading Heading[#]¶
- Creates a heading object using degrees (clockwise)
heading Heading[y,x]¶
- Creates a heading object using the heading to this y,x location
heading Heading[N,W]¶
- Same as above, just an alternate method
Associated DataTypes¶
heading¶
- Represents a direction on a compass.
-
Members
int
Clock¶- The nearest clock direction, e.g. 1-12
float
Degrees¶- Heading in degrees (same as casting to float)
float
DegreesCCW¶- Heading in degrees counter-clockwise (the way the rest of MQ2 and EQ uses it)
string
Name¶- The long compass direction, eg. "south", "south by southeast"
string
ShortName¶- The short compass direction, eg. "S", "SSE"
string
(To String)¶- Same as ShortName
Usage¶
/echo ${Heading[15].ShortName}
Echos the shortname of the heading of 15 degrees.
/echo ${Heading[-342,700].ShortName}
Echos the shortname heading to the location -342,700