ProjectPointOnLine (FUN)ΒΆ

FUNCTION ProjectPointOnLine : BOOL

This function will project the point \(x \in \mathbb{R^{3}}\) 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 \(x\). The intersection point of the plane with the line corresponding to this location is the projected point.

InOut:

Scope

Name

Type

Comment

Return

ProjectPointOnLine

BOOL

Input

pline

POINTER TO LINE_3D

Pointer on straight line

pvOrig

POINTER TO Vector3D

Pointer on point \(x\) to be projected

pvProj

POINTER TO Vector3D

Pointer to projected result