valSPH
 All Classes Files Functions Variables
CotangentBundlePoint Class Reference

#include <CotangentBundlePoint.h>

Collaboration diagram for CotangentBundlePoint:
Collaboration graph

Public Member Functions

 CotangentBundlePoint ()
 It creates a new empty cotangent bundle point.
 
 CotangentBundlePoint (int n)
 It creates a new empty 2n-dimensional cotangent bundle point.
 
 CotangentBundlePoint (Position q, Momentum p)
 It creates a cotangent bundle point whit the values of the vectors supplied.
 
int getDim ()
 It supplies the dimension of the cotangent bundle point.
 
void setDim (int n)
 It modifies the dimension of the cotangent bundle point.
 
Position getQ ()
 It retrieves the position of the cotangent bundle point.
 
Momentum getP ()
 It retrieves the momentum of the cotangent bundle point.
 
void setQ (Position q)
 It modifies the position of the cotangent bundle point.
 
void setP (Momentum p)
 It modifies the momentum of the cotangent bundle point.
 
double distance (Position r)
 It calculates the distance from itself to the position r.
 
 ~CotangentBundlePoint ()
 It destroys the cotangent bundle point object.
 

Constructor & Destructor Documentation

CotangentBundlePoint::CotangentBundlePoint ( )

It creates a new empty cotangent bundle point.

CotangentBundlePoint::CotangentBundlePoint ( int  n)

It creates a new empty 2n-dimensional cotangent bundle point.

Here is the call graph for this function:

CotangentBundlePoint::CotangentBundlePoint ( Position  q,
Momentum  p 
)

It creates a cotangent bundle point whit the values of the vectors supplied.

Parameters
qposition
pmomentum
CotangentBundlePoint::~CotangentBundlePoint ( )

It destroys the cotangent bundle point object.

Member Function Documentation

double CotangentBundlePoint::distance ( Position  r)

It calculates the distance from itself to the position r.

Parameters
rthe other position

Here is the call graph for this function:

Here is the caller graph for this function:

int CotangentBundlePoint::getDim ( )

It supplies the dimension of the cotangent bundle point.

Returns
the dimension of the cotangent bundle point

Here is the call graph for this function:

Momentum CotangentBundlePoint::getP ( )

It retrieves the momentum of the cotangent bundle point.

Returns
the momentum of the cotangent bundle point
Position CotangentBundlePoint::getQ ( )

It retrieves the position of the cotangent bundle point.

Returns
the position of the cotangent bundle point

Here is the caller graph for this function:

void CotangentBundlePoint::setDim ( int  n)

It modifies the dimension of the cotangent bundle point.

Returns
n the dimension of the cotangent bundle point

Here is the call graph for this function:

void CotangentBundlePoint::setP ( Momentum  p)

It modifies the momentum of the cotangent bundle point.

Parameters
pthe new momentum of the cotangent bundle point

Here is the caller graph for this function:

void CotangentBundlePoint::setQ ( Position  q)

It modifies the position of the cotangent bundle point.

Parameters
qthe new position of the cotangent bundle point

Here is the caller graph for this function:


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