GlmSharp/GlmSharp5/Quat/uquat.cs
/// <summary>
/// Converts the string representation of the quaternion into a quaternion representation (using a designated separator and a number style).
/// </summary>
Converts the string representation of the quaternion into a quaternion representation (using a designated separator and a number style).
Converts the string representation of the quaternion into a quaternion representation ( using a designated separator and a number style ) .
public static uquat Parse(string s, string sep, NumberStyles style)
        {
            var kvp = s.Split(new[] { sep }, StringSplitOptions.None);
            if (kvp.Length != 4) throw new FormatException("input has not exactly 4 parts");
            return new uquat(uint.Parse(kvp[0].Trim(), style), uint.Parse(kvp[1].Trim(), style), uint.Parse(kvp[2].Trim(), style), uint.Parse(kvp[3].Trim(), style));
        }
public static uquat Parse ( string s , string sep , NumberStyles style ) { var kvp = s . Split ( new [ ] { sep } , StringSplitOptions . None ) ; if ( kvp . Length != 4 ) throw new FormatException ( " " ) ; return new uquat ( uint . Parse ( kvp [ 0 ] . Trim ( ) , style ) , uint . Parse ( kvp [ 1 ] . Trim ( ) , style ) , uint . Parse ( kvp [ 2 ] . Trim ( ) , style ) , uint . Parse ( kvp [ 3 ] . Trim ( ) , style ) ) ; }
Converts the string representation of the quaternion into a quaternion representation (using a designated separator and a number style).
Converts the string representation of the quaternion into a quaternion representation ( using a designated separator and a number style ) .
s
string
sep
string
style
NumberStyles