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