Quaternion.Parse Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Converts a string representation of a Quaternion into the equivalent Quaternion structure.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public static Quaternion Parse(
	string source
)

Parameters

source
Type: System.String

A string representation of a Quaternion.

Return Value

Type: System.Windows.Media.Media3D.Quaternion

Quaternion represented by the string.

try
{
    endQuaternion = Quaternion.Parse(ParseValue.Text);
}
catch
{
    ParseValue.Text = "Must input (X, Y, Z, W)";
}

endRotation.Quaternion = endQuaternion;

.NET Framework
Available since 3.0
Return to top
Show: