Question about MVC model, how would you use the filtering function from last questions as interchangeable functions in the model
Anónimo
create a class "Filter" with 1 method that is inherited by each filtering function and overriding a function that receives as argument a vector of points (rest arguments are data members). Use filter* at model, controller can set different filter* due to polymorphism