Determines the point that represents the middle of a line
between two points.
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 Vector MidPoint(
Vector pt1,
Vector pt2
) |
Visual Basic |
---|
Public Shared Function MidPoint ( _
pt1 As Vector, _
pt2 As Vector _
) As Vector |
Visual C++ |
---|
public:
static Vector^ MidPoint(
Vector^ pt1,
Vector^ pt2
) |
Parameters
- pt1
- Type: Vector
The line's starting point.
- pt2
- Type: Vector
The line's ending point.
Return Value
The mid-point between the two points.
See Also