
16 Jan
2014
16 Jan
'14
1:06 p.m.
2014/1/16 Sean Farrow
Hi All,
I’m in the process of needing to calculate the centre point of a rectangle, given the top left and bottom right co-ordinates.
Before I write this myself, I was wondering whether boost Geometry already has something to do this.
You can use centroid. http://www.boost.org/doc/libs/1_55_0/libs/geometry/doc/html/geometry/referen...