StringExtensions.ToVector4(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a String value to a Vector4 value. This method always assumes the invariant culture for parsing values (',' separates numbers, '.' is the decimal separator). The input text can either represents a single number (mapped to Vector4(Single), or multiple components. Additionally, the format "<float, float, float, float>" is also allowed (though less efficient to parse).
public static System.Numerics.Vector4 ToVector4 (this string text);
static member ToVector4 : string -> System.Numerics.Vector4
<Extension()>
Public Function ToVector4 (text As String) As Vector4
Parameters
Returns
The parsed Vector4 value.
Exceptions
Thrown when text
doesn't represent a valid Vector4 value.