Click or drag to resize
Ab4d.SharpEngine logo

LineSelectorDataCalculateViewPositions(Matrix4x4, Single, Single) Method

CalculateViewPositions method converts the 3D line positions into 2D positions on the screen that can be used for calculating distance to specified 2D position. This method must be called before GetClosestDistance(Vector2, Single) or GetClosestPositionOnLine(Vector3, Vector3) methods can be called.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public void CalculateViewPositions(
	 in Matrix4x4? worldToViewMatrix,
	float dpiScaleX,
	float dpiScaleY
)

Parameters

worldToViewMatrix  Matrix4x4
world to view matrix Matrix4x4
dpiScaleX  Single
SceneView's X DPI scale
dpiScaleY  Single
SceneView's Y DPI scale
Remarks

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

See Also