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