In Surface class: constructor competed with dx and dy as floats.
In SurfaceFunctions: update all methods.