Open Rails

STFReader.ReadVector3Block Method

[This is preliminary documentation and subject to change.]

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

public Vector3 ReadVector3Block(
   UNITS validUnits,
   Vector3 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 Vector3

See Also

STFReader Class | Orts.Parsers.Msts Namespace