Engines/FlatRedBallXNA/FlatRedBall.Content/ModelAnimation/X File/XFileTokenizer.cs
/// <summary>
/// Reads the next Vector4 in the stream.
/// </summary>
/// <returns>The parsed Vector4</returns>
Reads the next Vector4 in the stream.
Reads the next Vector4 in the stream .
public Vector4 NextVector4()
        {
            tokenIndex += 9;
            try
            {
                Vector4 v = new Vector4(
                    float.Parse(tokens[tokenIndex - 9]),
                    float.Parse(tokens[tokenIndex - 7]),
                    float.Parse(tokens[tokenIndex - 5]),
                    float.Parse(tokens[tokenIndex - 3]));
                return v;
            }
            catch (Exception e)
            {
                Throw(typeof(Vector4), e, tokens[tokenIndex]);
            }
            return Vector4.Zero;
        }
public Vector4 NextVector4 ( ) { tokenIndex += 9 ; try { Vector4 v = new Vector4 ( float . Parse ( tokens [ tokenIndex - 9 ] ) , float . Parse ( tokens [ tokenIndex - 7 ] ) , float . Parse ( tokens [ tokenIndex - 5 ] ) , float . Parse ( tokens [ tokenIndex - 3 ] ) ) ; return v ; } catch ( Exception e ) { Throw ( typeof ( Vector4 ) , e , tokens [ tokenIndex ] ) ; } return Vector4 . Zero ; }
Reads the next Vector4 in the stream.
Reads the next Vector4 in the stream .
The parsed Vector4
The parsed Vector4