Added inputDomain and a new compute method to Equation, to make drawing on a given domain and composing equations easier. Also made rendering loop more performant by drawing all equations in one loop. Adding equations no longer implicitly calls setNeedsDisplay, so you have to call it yourself. This gives you the opportunity to modify equations before rendering them.
Added inputDomain and a new compute method to Equation, to make drawing on a given domain and composing equations easier. Also made rendering loop more performant by drawing all equations in one loop. Adding equations no longer implicitly calls setNeedsDisplay, so you have to call it yourself. This gives you the opportunity to modify equations before rendering them.

MosheBerman/Precalc