midPoint()

Synopsis

Returns the point halfway between p1 and p2.

Syntax

midPoint ( p1 As Point, _
           p2 As Point ) As Point 
Argument Type Description
p1 Point First point .
p2 Point Second point .

Example 1

Intent >midPoint(point(0,0,0), point(1,0,0)) 
--> Point_(0.5, 0.0, 0.0, WorldFrame()) 

Example 2

Intent >midPoint(point(0,0,0), point(0,0,0)) 
--> Point_(0.0, 0.0, 0.0, WorldFrame()) 
Coincident points do not raise an error.