Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsProject Method

Projects a 3D vector from object space into screen space.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static Vector3 Project(
	 in Vector3 vector,
	float x,
	float y,
	float width,
	float height,
	float minZ,
	float maxZ,
	 in Matrix4x4 worldViewProjection
)

Parameters

vector  Vector3
The vector to project.
x  Single
The X position of the viewport.
y  Single
The Y position of the viewport.
width  Single
The width of the viewport.
height  Single
The height of the viewport.
minZ  Single
The minimum depth of the viewport.
maxZ  Single
The maximum depth of the viewport.
worldViewProjection  Matrix4x4
World-view-projection matrix.

Return Value

Vector3
Vector in screen space.
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MathUtils.Project(System.Numerics.Vector3@,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Numerics.Matrix4x4@)"]

See Also