Open Rails

MstsUtility.Survey Method

[This is preliminary documentation and subject to change.]

Consider a line starting a pX,pZ and heading away at deg from North returns lat = distance of x,z off of the line returns lon = distance of x,z along the line

public static void Survey(
   float pX,
   float pZ,
   float rad,
   float x,
   float z,
   out float lon,
   out float lat
);

See Also

MstsUtility Class | Orts.Formats.Msts Namespace