Calculates the distance between the surface of an ellipsoid model and the closest point on a line.

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


public static double SurfaceDistance(
	this WgsModel model,
	Vector p1,
	Vector p2
Visual Basic
<ExtensionAttribute> _
Public Shared Function SurfaceDistance ( _
	model As WgsModel, _
	p1 As Vector, _
	p2 As Vector _
) As Double
Visual C++
static double SurfaceDistance(
	WgsModel^ model, 
	Vector^ p1, 
	Vector^ p2


Type: WgsModel
The ellipsoid model.
Type: Vector
Line starting point, in ECI coordinate space.
Type: Vector
Line ending point, in ECI coordinate space.

Return Value

The distance between the surface of the ellipsoid model and the nearest point on the line, in kilometers.

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