StringExtensions.ToQuaternion(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 Quaternion value. This method always assumes the invariant culture for parsing values (',' separates numbers, '.' is the decimal separator). Additionally, the format "<float, float, float, float>" is also allowed (though less efficient to parse).
public static System.Numerics.Quaternion ToQuaternion (this string text);
static member ToQuaternion : string -> System.Numerics.Quaternion
<Extension()>
Public Function ToQuaternion (text As String) As Quaternion
Parameters
Returns
The parsed Quaternion value.
Exceptions
Thrown when text
doesn't represent a valid Quaternion value.