Calculates the distance between the surface of an ellipsoid model and
the closest point on a line.
Namespace: Zeptomoby.OrbitTools.TrackAssembly: Zeptomoby.OrbitTools.Track (in Zeptomoby.OrbitTools.Track.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
C# |
---|
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++ |
---|
[ExtensionAttribute]
public:
static double SurfaceDistance(
WgsModel^ model,
Vector^ p1,
Vector^ p2
) |
Parameters
- model
- Type: WgsModel
The ellipsoid model.
- p1
- Type: Vector
Line starting point, in ECI coordinate space.
- p2
- 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