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