Hi Jeremy, 

You should look at some basic linear algebra. There are a number of ways to derive the formula and each source covers this from a slightly different angle (no pun intended :)); try to understand geometric meaning of the line equation (of the form a*t + b) and the dot product (a dot b). Drop me an email if you are struggling with this.

Greets,
mike

On 2 August 2016 at 08:27, Jeremy Murphy <jeremy.william.murphy@gmail.com> wrote:
Dear Geometers,

I have looked, but I cannot find an algorithm (in BG) to calculate the projection of a point on a line, as per the explanation here: http://cs.nyu.edu/~yap/classes/visual/03s/hw/h2/math.pdf

Have I simply missed it or is there a simple combination of algorithms to calculate it?

So far I have been rolling my own linear algebra computation as per that paper, but I was hoping to simplify the code and use something built in.

Thanks, cheers.

Jeremy


_______________________________________________
Geometry mailing list
Geometry@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/geometry