Macro parametric_surface

Source
macro_rules! parametric_surface {
    ($u:ident, $v:ident, $f1:expr, $f2:expr, $f3:expr) => { ... };
}
Expand description

Creates a parametric surface

§Parametric Surface macro

This macro just takes as input two identifiers (the name of the variables) and three expressions, which will serve as the functions for each component in the 3D vector that it will return when evaluated, because this macro creates a ParametricSurface.

§Examples

use vector_calculus::*;
let p:ParametricSurface = parametric_surface!(u, v, 3.*u*v, u+v, 9.);