pub fn margin2<T: Float>(m: T, a: Fn2<T>) -> Fn2<T>where f64: Cast<T>,
Adds a margin to input of a 2d -> 3d function.
2d -> 3d