Click or drag to resize
DigitalRuneGraphicsHelper.Project Method (Viewport, Vector3F, Matrix44F, Matrix44F, Matrix44F)
Projects a position from object space into screen space.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Vector3F Project(
	this Viewport viewport,
	Vector3F position,
	Matrix44F projection,
	Matrix44F view,
	Matrix44F world
)

Parameters

viewport
Type: Viewport
The viewport.
position
Type: DigitalRune.Mathematics.Algebra.Vector3F
The position in object space.
projection
Type: DigitalRune.Mathematics.Algebra.Matrix44F
The projection matrix.
view
Type: DigitalRune.Mathematics.Algebra.Matrix44F
The view matrix.
world
Type: DigitalRune.Mathematics.Algebra.Matrix44F
The world matrix.

Return Value

Type: Vector3F
The position in screen space: The x- and y-components define the pixel position. The z-component defines the depth in clip space. (The depth of the clipping volume ranges from MinDepth() to MaxDepth() - usually [0, 1].)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Viewport. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also