Click or drag to resize
Ab4d.SharpEngine logo

LineSelectorDataGetClosestPositionOnLine(Int32, Vector3, Vector3) Method

Gets the Vector3 that represents the closest position of the line segment with the specified linePositionIndex to the specified ray. The ray is usually calculated by SceneView.GetRayFromCamera method. When the closest position cannot be calculated, then Vector3 with float.NaN is returned.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public Vector3 GetClosestPositionOnLine(
	int linePositionIndex,
	Vector3 rayOrigin,
	Vector3 rayDirection
)

Parameters

linePositionIndex  Int32
index of the line position
rayOrigin  Vector3
ray origin
rayDirection  Vector3
ray direction

Return Value

Vector3
closest position to the specified ray or Vector3 with float.NaN in case the closest position cannot be calculated
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.LineSelectorData.GetClosestPositionOnLine(System.Int32,System.Numerics.Vector3,System.Numerics.Vector3)"]

See Also