From: Andre Wobst <wobsta@us...>  20040727 06:22:39

Hi, On 27.07.04, Magnus Lie Hetland wrote: > Just threw together a little geometry module to illustrate some ideas > I've had; it's rather small, so I've attached it to this email. (Not > quite sure if the list lets attachments through, but...) You're a lucky guy ... ;) > The main point isn't the geometry in itself (quite trivial) but the > laziness; because there are lazy points that are calculated from other > points on demand it is possible to emulate the equations of MetaPost > (even though the emulation is oneway and functional, as opposed to > the general equations in MetaPost). Hmm. Lazy points are definitely the right thing. We will need lazy skalars and a lazy transformation as well ... Beside that my main concern is, whether its enough to stick on this strict assignments. This is quite a limitation. We can't compete to MetaPost by that (but we want, don't we?). I'm not sure whether its possible to cook it all down to an Equalityfunction: Equal(b, a + Point(10, 0)) or even missuse the Equality comparision "==": b == a + Point(10, 0) Of course, this would mean, that we would need to first defining all lazy variables: a = Lazy_Point(); b = Lazy_Point(); c = Lazy_Point(), but I think that's not a problem to be that verbose. Beside that I would like points with other dimensions (at least 3d as well) and (affine) transformations between Points of different dimensions. At least that's what I would like to have ... ;) Anyway, I really like your code! André  by _ _ _ Dr. André Wobst / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX  High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ 