New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coercion of geometric elements in Lists does not work as expected #508
Comments
For this specific situation we need a few more I'm removing the incompatible label since I don't see this as a bug which will introduce an incompatibility. I just started a wiki page describing labels, and I'll likely trigger an email discussion about that as well. |
Probably it's better to adjust General.add/mult to deal with geoOps On 10/08/2016 09:34 PM, Martin von Gagern wrote:
Michael Strobel, M.Sc. Technische Universität München -- Zentrum Mathematik |
I just quickly hacked something: strobelm@0979eee Any concerns about that? What else do we want to add? |
I'm not convinced this is a good idea. On the one hand I'd prefer to move most of the type conversion out of the functions for our own data structures and into our operator implementations. On the other hand the
This doesn't allow for combinations of lists and geometric elements. I think you should have two steps: one turning geo values into list values, considering each argument alone, and another doing the dispatch based on both types together.
|
If you have a list of geometric elements, say, points
[A,B,C,D]
, then you cannot rely on coercion to create coordinates of these. In Cinderella,sum([A,B,C,D])/4
would be the center of gravity of those points, as this expression is equivalent tosum([A.xy,B.xy,C.xy,D.xy])/4
.The text was updated successfully, but these errors were encountered: