RavensKrag / ThoughtTrace

Naturally chart out words in 2D space, mapping the relations between them. Even link to other ideas. Then, build your programs on top of the flow.
0 stars 0 forks source link

CP::Shape cloning - centralize code to copy common properties #9

Open RavensKrag opened 10 years ago

RavensKrag commented 10 years ago

I'm not ok with having all this code duplication

but there's not really a good way to do that the shape classes don't really have a shared base class which has a lot to do with the underlying library not actually being an OOP library

RavensKrag commented 10 years ago

Don't really need the #clone implemented for this library any more, but might be nice to forward the implementation of #clone upstream, if it can be implemented for all types.

It's particuarly handy to have a real working implementation of CP::Vec2#clone (the default implementation always returns <0.000, 0.000>)