Boost logo

Boost :

From: Deane Yang (deane_yang_at_[hidden])
Date: 2005-06-02 10:57:07

Andy Little wrote:
> eg to find the point 1/3 rd way from the start of line(A , B) one could
> calculate 2/3 *A +1/3 * B.

I think it is more natural to compute this as

A + (1/3)*(B - A),

where A and B are points and B - A is a vector. So you're really still
just adding a vector to a point to get a new point. There is never a
need to add or rescale points.

Boost list run by bdawes at, gregod at, cpdaniel at, john at