Boost logo

Geometry :

Subject: Re: [geometry] nsphere and views names
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-06-20 13:36:18

Adam Wulkiewicz wrote:
> I've called it center_view because it may be used to 'see' some Geometry
> as it's center. It might be used also for ellipses, boxes, etc.
> E.g. in OpenStreetMap there are WAYs which are vectors of points and
> describe LineStrings or Rings (it the first point is repeated at the
> end). We could e.g. have linestring_view which allows to see a vector as
> a Linestring and ring_view which allows to see vector as a Ring. And
> those names could also be used for other points-containers/Geometries
> (those classes could be Derived from some specialized implementations)
> What do you think about those 'new' views? If you like it, should they
> reside in some new namespace?

Maybe something like this:

geometry::view::as_centroid / as_center_point / as_center_point



Geometry list run by mateusz at