ViewportExtensions Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines the window dimensions of a render-target surface onto which a 3D volume projects.
Inheritance Hierarchy
System.Object
Microsoft.Xna.Framework.Graphics.ViewportExtensions
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public NotInheritable Class ViewportExtensions
public static class ViewportExtensions
The ViewportExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
Project | Projects a 3D vector from object space into screen space. | |
Unproject | Converts a screen space point into a corresponding point in world space. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.