Returns true if a line between two points intersects an earth ellipsoid model.

Namespace: Zeptomoby.OrbitTools.Track
Assembly: Zeptomoby.OrbitTools.Track (in Zeptomoby.OrbitTools.Track.dll) Version: 1.5.0.0 (1.5.0.0)

Syntax

C#
public static bool LineIntersects(
	this WgsModel model,
	Vector p1,
	Vector p2,
	double kmAltitude
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function LineIntersects ( _
	model As WgsModel, _
	p1 As Vector, _
	p2 As Vector, _
	kmAltitude As Double _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool LineIntersects(
	WgsModel^ model, 
	Vector^ p1, 
	Vector^ p2, 
	double kmAltitude
)

Parameters

model
Type: WgsModel
The earth ellipsoid model.
p1
Type: Vector
Line starting point, in ECI coordinate space.
p2
Type: Vector
Line ending point, in ECI coordinate space.
kmAltitude
Type: System..::..Double
The minimum distance the line must be positioned near the ellipsoid surface to be considered intersecting.

Return Value

True if the line intersects, else false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WgsModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also