function [Q,PQ,au] = projectpointonline(P,T0,T1)
[Q,PQ,au] = projectpointonline(P,T,u,"parametric")
returns the three-dimensional point Q which is the
projection of point P onto the line described
either by two points T0 and T1 or by point T and
vector u.
Input argument P has three-columns, and may have
more than one rows: each row for each point to be
projected.
Input arguments T0, T1, T and u are three-element
column vectors only.
Output argument PQ lists the distances of the
respective points P to the line. Output argument
au lists the position of Q relative to either
the distance of T0 to T1 or the length of u.
(c) 2026 fabien van mook
2026.08.20 release of this file within package "fvm-geometry" under GNU GPLv3+