[Geometry] Calculating the centre of a rectangle
16 Jan
2014
16 Jan
'14
6:37 a.m.
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. Any help appreciated. Cheers Sean.
16 Jan
16 Jan
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...
3968
Age (days ago)
3968
Last active (days ago)
1 comments
2 participants
participants (2)
-
Sean Farrow
-
TONGARI J