Open Rails

STFReader.ReadVector2Block Method

[This is preliminary documentation and subject to change.]

Read a Vector3 object in the STF format '( {X} {Y} ... )'

public Vector2 ReadVector2Block(
   UNITS validUnits,
   Vector2 defaultValue
);

Parameters

validUnits
Any combination of the UNITS enumeration, to limit the available suffixes to reasonable values.
defaultValue
The default vector if any of the values are not specified

Return Value

The STF block as a Vector2

See Also

STFReader Class | Orts.Parsers.Msts Namespace