CADability dotNET
Returns the smallest parameter value (l) where the provided line hits the object so that the point fromHere + l * direction is on or close to the object. The result may be negative. Return double.MaxValue if there is no such point.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
double Position(
	GeoPoint fromHere,
	GeoVector direction,
	double precision
)
Visual Basic
Function Position ( _
	fromHere As GeoPoint, _
	direction As GeoVector, _
	precision As Double _
) As Double
Visual C++
double Position(
	GeoPoint fromHere, 
	GeoVector direction, 
	double precision
)

Parameters

fromHere
Type: CADability..::..GeoPoint
Startpoint of the line
direction
Type: CADability..::..GeoVector
Direction of the line
precision
Type: System..::..Double
Precision for the test

Return Value

Position on the line

See Also