Boost logo

Geometry :

Subject: [geometry] calculating the projection of a point on a line
From: Jeremy Murphy (jeremy.william.murphy_at_[hidden])
Date: 2016-08-02 03:27:51


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 list run by mateusz at loskot.net