DEV Community

Discussion on: Data directed programming

Collapse
 
walker profile image
Walker Harrison

Cool post. Does the fact that polar coordinates can be the same ([1, π] = [1, 3π] = [1, 5π], etc.) complicate matters at all or is that simply handled by the trig functions?

Collapse
 
alancampora profile image
Alan Campora • Edited

Great question! Actually I haven't thought about that before.
In fact, that could be an issue because some users could want to represent angles with degrees and others using radians. So once again, we could try to tag the angle with the type ('radians 'degrees) and handle that internally using the technique that we saw before!