Click or drag to resize
AB4D logo

LineSelectorDataCalculateScreenSpacePositions(Matrix3D, Transform3D) Method

CalculateScreenSpacePositions method converts the 3D line positions into 2D positions that can be used for calculating distance to specified 2D position. This method must be called before GetClosestDistance(Point) or GetClosestDistance(Point, Int32) can be called. This method takes a reference to a worldToViewport Matrix and an optional Transform3D and can be called on any thread.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public void CalculateScreenSpacePositions(
	ref Matrix3D worldToViewportMatrix,
	Transform3D transform = null
)

Parameters

worldToViewportMatrix  Matrix3D
a Matrix3D that can be get from calling camera.GetWorldToViewportMatrix method
transform  Transform3D  (Optional)
optional Transform3D
See Also