pub struct ParametricSurface {
pub f1: Function,
pub f2: Function,
pub f3: Function,
}Expand description
Special function of R^2→R^3
§Parametric Surface
Parametric surfaces are part of a Surface, but you can create one by itself with the parametric_surface!
macro. They are composed of three scalar two-dimensional functions, and they behave like 2D functions, except
they return a 3D vector.
These also implement display, and have a .ddu(f64,f64) and .ddv(f64,f64) that returns the partial derivative
vectors.
§Examples
use vector_calculus::*;
let p:ParametricSurface = parametric_surface!(u, v, u.powi(2)*v, u+v, v*u);
println!("p(u,v) = {}", p);
assert_eq!(p(1., 2.), vector!(2, 3, 2));Fields§
§f1: Function§f2: Function§f3: FunctionImplementations§
Trait Implementations§
Source§impl Clone for ParametricSurface
impl Clone for ParametricSurface
Source§fn clone(&self) -> ParametricSurface
fn clone(&self) -> ParametricSurface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for ParametricSurface
impl Display for ParametricSurface
Auto Trait Implementations§
impl Freeze for ParametricSurface
impl !RefUnwindSafe for ParametricSurface
impl !Send for ParametricSurface
impl !Sync for ParametricSurface
impl Unpin for ParametricSurface
impl !UnwindSafe for ParametricSurface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more