MATH.ProjectPointOnLine (FUN)

 

CAA_Mathematics.library)

This function will project the point math_image135.png onto a straight line: thereby, the direction vector of the straight line is taken as normal vector of a plane that is moved along the line as long as it touches the point math_image024.png. The inter­section point of the plane with the line corresponding to this location is the projected point.

The return is a dummy of type BOOL.

Input:

pLine

POINTER TO MATH.LINE_3D

pointer on straight line

pvOrig

POINTER TO MATH.Vector3D

pointer on point|PNG72/math_image024.png.png7| to be projected

pvProj

POINTER TO MATH.Vector3D

pointer to projected result