Core 1.0
Public Member Functions | Static Protected Attributes | List of all members
AnalyticVectorField2 Class Reference

A core analytic two-dimensional vector field. More...

#include <vectorfield.h>

Public Member Functions

virtual Vector2 Value (const Vector2 &) const
 Compute the value of the field. More...
 
virtual double Divergence (const Vector2 &) const
 Compute the divergence of the field. More...
 
virtual double Curl (const Vector2 &) const
 Compute the curl of the field. More...
 

Static Protected Attributes

static const double epsilon = 1e-6
 Epsilon value for partial derivatives.
 

Detailed Description

A core analytic two-dimensional vector field.

Member Function Documentation

◆ Curl()

double AnalyticVectorField2::Curl ( const Vector2 p) const
virtual

Compute the curl of the field.

Parameters
pPoint.

◆ Divergence()

double AnalyticVectorField2::Divergence ( const Vector2 p) const
virtual

Compute the divergence of the field.

Parameters
pPoint.

◆ Value()

Vector2 AnalyticVectorField2::Value ( const Vector2 p) const
virtual

Compute the value of the field.

Parameters
pPoint.