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