Re: Design problem




Ilja Preuß wrote:
Mark Nicholls wrote:

Thats fine and dandy, but the space of circles is not closed under the
operations described...

i.e. compressing the Y axis makes a circle into a ellipse, not a
little circle.

One way around this is to have the operations create new shapes instead of
changing existing once.

Cheers, Ilja

yes I agree...I think this was the basis of my previous answer....based
on double dispatch...of course the resultant shape is based on current
shape x operation.

you either decompose the problem into chunks (double dispatch)....or
find a general case.......two points aren't enough for a general
case....and the complete set of points is obviously enough but
unbounded so computationally difficult!. Assuming the operations are
linear i.e like rotations etc....the closure of the space is probably
the conic sections.

.



Relevant Pages