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