Open Rails

STFReader.ReadVector4Block Method

[This is preliminary documentation and subject to change.]

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

public Vector4 ReadVector4Block(
   UNITS validUnits,
   Vector4 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 Vector4

See Also

STFReader Class | Orts.Parsers.Msts Namespace