Public Member Functions | List of all members
KeplerVelocity Class Reference

Keplerian velocity. More...

#include <KeplerVelocity.hpp>

Inheritance diagram for KeplerVelocity:
Inheritance graph
[legend]
Collaboration diagram for KeplerVelocity:
Collaboration graph
[legend]

Public Member Functions

 KeplerVelocity (Direction dir, double Mass, Vector2D const &center=Vector2D(0, 0))
 Class constructor. More...
 
double operator() (const Vector2D &point) const
 Evaluates the function. More...
 

Detailed Description

Keplerian velocity.

Definition at line 16 of file KeplerVelocity.hpp.

Constructor & Destructor Documentation

◆ KeplerVelocity()

KeplerVelocity::KeplerVelocity ( Direction  dir,
double  Mass,
Vector2D const &  center = Vector2D(0,0) 
)

Class constructor.

Parameters
dirThe component of the velocity, can be xdir or ydir
MassThe mass of the central star (G=1)
centerThe location of the star

Definition at line 3 of file KeplerVelocity.cpp.

Member Function Documentation

◆ operator()()

double KeplerVelocity::operator() ( const Vector2D point) const
virtual

Evaluates the function.

Parameters
pointPosition
Returns
The value of the function at the point

Implements SpatialDistribution.

Definition at line 6 of file KeplerVelocity.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: