ConstantScalarField2.h
Go to the documentation of this file.
std::function< double(const Vector2D &)> Sampler() const override
Returns the sampler function.
Builder & WithValue(double value)
Returns builder with value.
double Sample(const Vector2D &x) const override
Returns the sampled value at given position x.
Definition: pybind11Utils.h:24
ConstantScalarField2Ptr MakeShared() const
Builds shared pointer of ConstantScalarField2 instance.
ConstantScalarField2 Build() const
Builds ConstantScalarField2.
ConstantScalarField2(double value)
Constructs a constant scalar field with given value.
static Builder GetBuilder()
Returns builder fox ConstantScalarField2.
Front-end to create ConstantScalarField2 objects step by step.
Definition: ConstantScalarField2.h:44
std::shared_ptr< ConstantScalarField2 > ConstantScalarField2Ptr
Shared pointer for the ConstantScalarField2 type.
Definition: ConstantScalarField2.h:39