|
LineSelectorDataGetClosestPositionOnLine(Int32, Vector3, Vector3) Method |
Gets the Vector3 that represents the closest position of the line segment with index
LastLinePositionIndex
to the specified ray. The ray is usually calculated by SceneView.GetRayFromCamera method.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax 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
Vector3closest position to the specified ray
See Also