WolfEngine.Vector2f.Project C# (CSharp) Method

Project() public method

public Project ( ) : Vector2f
return Vector2f
        public Vector2f Project()
        {
            // Use a constant y value for height to project the XZ point to an XY point on the screen
            if (y == 0)
            {
                return new Vector2f(x, y);
            }
            else
            {
                return new Vector2f(x / y, 10 / y);
            }
        }