>>>>> On Fri, 27 Feb 2004 08:59:33 -0600, "KIRK, BENJAMIN (JSC-EG) (NASA)" <benjamin.kirk-1@...> said:
Ben> So foo1 should probably be called normal(), but what about foo2? I
Ben> suggested size() some time back, but as John pointed out that name generally
Ben> has a different meaning thanks to the STL. What has a similar meaning to
Ben> length/area/volume but is dimension-independent??
I'd just call it volume() or vol() since it's atop the language
hierarchy, and then put a comment in the documentation along the lines
of:
Returns the volume/area/length of side s or the element itself with no
argument.
Bill.
--
Bill Barth | Home: (512) 797-3045
bbarth@... | Work: (512) 471-4069
Office: WRW 111 | Fax: (512) 232-3357
|