Open danielhollas opened 2 months ago
I think I would tend to have this raise an exception, because it simply doesn't make sense.
I was going to say that alternatively returning [0, 0 ,0]
or [None, None, None]
seems wrong to me, but then again, it could be that the cell is 2-dimensional, in which case two angles will have meaning. In that case, the user might still want to get those angles, and then one would be forced to return a list where the ill-defined angles have some sentinel value like nan
or None
.
Sadness in four steps
Not sure what the right behaviour is here, but at the very least we shouldn't be dividing by zero.