pub struct vtkExprTkFunctionParser(/* private fields */);Expand description
Parse and evaluate a mathematical expression
vtkExprTkFunctionParser is a wrapper class of the ExprTK library that takes in a mathematical expression as a char string, parses it, and evaluates it at the specified values of the variables in the input string.
The detailed documentation of the supported functionality is described in https://github.com/ArashPartow/exprtk. In addition to the documented functionality, the following vector operations have been implemented:
- cross(v1, v2), cross product of two vectors,
- mag(v), magnitude of a vector,
- norm(v), the normalized version of a vector.
@par Thanks: Arash Partow for implementing the ExprTk library.
Implementations§
Source§impl vtkExprTkFunctionParser
impl vtkExprTkFunctionParser
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new vtkExprTkFunctionParser wrapped inside vtkNew
Trait Implementations§
Source§impl Default for vtkExprTkFunctionParser
impl Default for vtkExprTkFunctionParser
Auto Trait Implementations§
impl Freeze for vtkExprTkFunctionParser
impl RefUnwindSafe for vtkExprTkFunctionParser
impl !Send for vtkExprTkFunctionParser
impl !Sync for vtkExprTkFunctionParser
impl Unpin for vtkExprTkFunctionParser
impl UnwindSafe for vtkExprTkFunctionParser
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