Click or drag to resize

ViewportCameraSettingsClassProjectToScreenCoordinates Method (Vector3, Vector2, Boolean)

Projects world position to screen coordinates.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2022.1.1.0 (2022.1.1.0)
Syntax
C#
public bool ProjectToScreenCoordinates(
	ref Vector3 position,
	out Vector2 screenPosition,
	bool backsideReturnFalse = true
)

Parameters

position
Type: NeoAxisVector3
The world position.
screenPosition
Type: NeoAxisVector2
The result screen coordinates.
backsideReturnFalse (Optional)
Type: SystemBoolean

Return Value

Type: Boolean
true if screen position successfully received; otherwise, false.
See Also