Difference between revisions of "MIST tostringBR"
From DCS World Wiki - Hoggitworld.com
Line 17: | Line 17: | ||
|reqName2= dist | |reqName2= dist | ||
− | |reqType3= | + | |reqType3= |
− | |reqName3= | + | |reqName3= |
|reqType4= | |reqType4= | ||
Line 29: | Line 29: | ||
|reqName5= | |reqName5= | ||
− | |optType1= | + | |optType1= number |
− | |optName1= | + | |optName1= altitude |
− | |optType2= | + | |optType2= boolean |
− | |optName2= | + | |optName2= metric |
|optType3= | |optType3= | ||
Line 54: | Line 54: | ||
metric is a boolean value that if present will return the string in the metric system. If not present it returns in Nautical Miles for distance and feet for altitude | metric is a boolean value that if present will return the string in the metric system. If not present it returns in Nautical Miles for distance and feet for altitude | ||
− | |rtnExamples= | + | |rtnExamples= 045 for 34 at 23000 |
Latest revision as of 01:26, 18 September 2020
mist.toStringBR
Added with: Mist 2.0 |
Description |
Returns a string of the Bearing Range and Altitude (BRA) based on the inputed variables. The number az defines the bearing in radians. Range is defined by dist. Altitude is defined by the alt. If metric is not present the function will assume all values are in imperial units and will return the Range and Altitude in Nautical Miles and Feet. If metric is present the metric system will be used for these values. |
Syntax |
string mist.toStringBR(number az ,number dist , number altitude ,boolean metric ) |
Valid Input Values: |
az = heading in radians
dist is distance to target in meters alt is altitude of target in meters metric is a boolean value that if present will return the string in the metric system. If not present it returns in Nautical Miles for distance and feet for altitude |
Return value: |
string |
Return example: |
045 for 34 at 23000 |
Usage Examples: |
|
Notes: |
Related Functions |
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense |