Quaternion.Parse(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 representation of a Quaternion into the equivalent Quaternion structure.
public:
static System::Windows::Media::Media3D::Quaternion Parse(System::String ^ source);
public static System.Windows.Media.Media3D.Quaternion Parse (string source);
static member Parse : string -> System.Windows.Media.Media3D.Quaternion
Public Shared Function Parse (source As String) As Quaternion
Parameters
- source
- String
A string representation of a Quaternion.
Returns
Quaternion represented by the string.
Examples
try
{
endQuaternion = Quaternion.Parse(ParseValue.Text);
}
catch
{
ParseValue.Text = "Must input (X, Y, Z, W)";
}
endRotation.Quaternion = endQuaternion;
Try
endQuaternion = Quaternion.Parse(ParseValue.Text)
Catch
ParseValue.Text = "Must input (X, Y, Z, W)"
End Try
endRotation.Quaternion = endQuaternion
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.