
I (John Femiani) wrote:
Also, I already disagree about the idea that a point should have coordinates. CoordinatesConcept should be part of a separate concept.
Of
course a useful point class will model both the coordinates and the point concept. To me a point should really support transform, scale, rotate, shear, and distance operations as free functions (maybe more).
I don't know how to handle the idea of a 'space' or a 'kernel'.
s/transform/translate Maybe there should also be a generic transform concept to but I dunno. Joel de Guzman wrote:
I am talking about generic programming and C++ concepts: http://www.research.att.com/~bs/popl06.pdf.
That paper uses syntax that is not yet part of _most_ C++ compilers, so I would like a proposed library to use the BCCL (http://www.boost.org/libs/concept_check ). Also there is a nice video from Doug Gregor http://video.google.com/videoplay?docid=-1790714981047186825 that helped me understand this subject (to the extent that I do) -- John Femiani