Go to the documentation of this file.
7 #ifndef INCLUDE_JET_CONSTANT_VECTOR_FIELD3_H_
8 #define INCLUDE_JET_CONSTANT_VECTOR_FIELD3_H_
60 #endif // INCLUDE_JET_CONSTANT_VECTOR_FIELD3_H_
Front-end to create ConstantVectorField3 objects step by step.
Definition: constant_vector_field3.h:43
Vector3D sample(const Vector3D &x) const override
Returns the sampled value at given position x.
ConstantVectorField3(const Vector3D &value)
Constructs a constant vector field with given value.
3-D constant vector field.
Definition: constant_vector_field3.h:16
Definition: advection_solver2.h:18
static Builder builder()
Returns builder fox ConstantVectorField3.
Abstract base class for 3-D vector field.
Definition: vector_field3.h:18
std::shared_ptr< ConstantVectorField3 > ConstantVectorField3Ptr
Shared pointer for the ConstantVectorField3 type.
Definition: constant_vector_field3.h:37
ConstantVectorField3 build() const
Builds ConstantVectorField3.
Builder & withValue(const Vector3D &value)
Returns builder with value.
Vector3< double > Vector3D
Double-type 3D vector.
Definition: vector3.h:349
3-D vector class.
Definition: vector3.h:25
std::function< Vector3D(const Vector3D &)> sampler() const override
Returns the sampler function.
ConstantVectorField3Ptr makeShared() const
Builds shared pointer of ConstantVectorField3 instance.