C# Class Nexus.Graphics.Viewport3D

Datei anzeigen Open project: tgjones/nexus

Public Methods

Method Description
Project ( Point3D source, Matrix3D projection, Matrix3D view, Matrix3D world ) : Point3D

Projects a scene point onto the screen.

ToString ( ) : string
Unproject ( Point3D source, Matrix3D projection, Matrix3D view, Matrix3D world ) : Point3D

Projects a screen point into the scene.

Viewport3D ( int x, int y, int width, int height ) : System.Globalization
Viewport3D ( int x, int y, int width, int height, float minDepth, float maxDepth ) : System.Globalization

Private Methods

Method Description
WithinEpsilon ( float a, float b ) : bool

Method Details

Project() public method

Projects a scene point onto the screen.
public Project ( Point3D source, Matrix3D projection, Matrix3D view, Matrix3D world ) : Point3D
source Point3D
projection Matrix3D
view Matrix3D
world Matrix3D
return Point3D

ToString() public method

public ToString ( ) : string
return string

Unproject() public method

Projects a screen point into the scene.
public Unproject ( Point3D source, Matrix3D projection, Matrix3D view, Matrix3D world ) : Point3D
source Point3D
projection Matrix3D
view Matrix3D
world Matrix3D
return Point3D

Viewport3D() public method

public Viewport3D ( int x, int y, int width, int height ) : System.Globalization
x int
y int
width int
height int
return System.Globalization

Viewport3D() public method

public Viewport3D ( int x, int y, int width, int height, float minDepth, float maxDepth ) : System.Globalization
x int
y int
width int
height int
minDepth float
maxDepth float
return System.Globalization