Go to the documentation of this file.
7 #ifndef INCLUDE_JET_CONSTANT_VECTOR_FIELD2_H_
8 #define INCLUDE_JET_CONSTANT_VECTOR_FIELD2_H_
60 #endif // INCLUDE_JET_CONSTANT_VECTOR_FIELD2_H_
ConstantVectorField2 build() const
Builds ConstantVectorField2.
Vector2< double > Vector2D
Double-type 2D vector.
Definition: vector2.h:340
Builder & withValue(const Vector2D &value)
Returns builder with value.
std::function< Vector2D(const Vector2D &)> sampler() const override
Returns the sampler function.
Vector2D sample(const Vector2D &x) const override
Returns the sampled value at given position x.
std::shared_ptr< ConstantVectorField2 > ConstantVectorField2Ptr
Shared pointer for the ConstantVectorField2 type.
Definition: constant_vector_field2.h:37
Definition: advection_solver2.h:18
ConstantVectorField2(const Vector2D &value)
Constructs a constant vector field with given value.
2-D vector class.
Definition: vector2.h:24
static Builder builder()
Returns builder fox ConstantVectorField2.
ConstantVectorField2Ptr makeShared() const
Builds shared pointer of ConstantVectorField2 instance.
Abstract base class for 2-D vector field.
Definition: vector_field2.h:18
Front-end to create ConstantVectorField2 objects step by step.
Definition: constant_vector_field2.h:43
2-D constant vector field.
Definition: constant_vector_field2.h:16