projectPoint()

Synopsis

Projects p onto the plane defined by planePoint and nor, and returns the point on the plane. The plane normal is the projection direction, so this operation is more accurately described as a "drop" to the closest point on the plane.

Syntax

projectPoint ( p As Point, _
               planePoint As Point, _
               nor As Vector ) As Point 
Argument Type Description
p Point The point to be projected.
planePoint Point The point defining the plane.
nor Vector The vector defining the plane normal. This is also the projection direction.

Example 1

Intent >projectPoint(point(1,1,1), point(0,0,0), vector(1,1,1)) 
--> Point_(0.0, 0.0, 0.0, WorldFrame()) 

Example 2

Intent >projectPoint(point(1,1,1), point(0,0,0), vector(0,0,1)) 
--> Point_(1.0, 1.0, 0.0, WorldFrame())