StringExtensions.ToQuaternion(String) Method

Definition

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

text
String

A String with the values to parse.

Returns

The parsed Quaternion value.

Exceptions

Thrown when text doesn't represent a valid Quaternion value.

Applies to